Submitted by mediadream on Sat, 2009-05-16 14:19 in Price Tapestry
Hi!
I want to download a TD csv zipped productfeed with several csv files in. And the just unzip all the files in ../feeds/, is that possible? Can get this to work...
No reason why it shouldn't work; it would generally look something like this in your automation script...
wget -O "/path/to/pricetapestry/feeds/allfeeds.zip" "http://www.example.com/allfeeds.zip"
cd /path/to/pricetapestry/feeds/
unzip allfeeds.zip
rm allfeeds.zip
The cd line (change directory) is important as it will ensure that the unzipping takes place into the /feeds/ folder and not, for example, cron's home directory..!
Hi,
No reason why it shouldn't work; it would generally look something like this in your automation script...
wget -O "/path/to/pricetapestry/feeds/allfeeds.zip" "http://www.example.com/allfeeds.zip"
cd /path/to/pricetapestry/feeds/
unzip allfeeds.zip
rm allfeeds.zip
The cd line (change directory) is important as it will ensure that the unzipping takes place into the /feeds/ folder and not, for example, cron's home directory..!
Cheers,
David.