You are here:  » Download an unzip all seperated?

Support Forum



Download an unzip all seperated?

Submitted by mediadream on Sat, 2009-05-16 14:19 in

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...

Submitted by support on Sun, 2009-05-17 07:51

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.