Advertisement
Advertisement
| 03.06.2008 at 07:57AM PST, ID: 23219933 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
#!/bin/sh
server="IP Address"
user="user:pass"
curl="/usr/etc/appletalk/curl"
destdir="/xxx/Clients/T/The Economist/Pagestore/Archive"
# Here we pull all files back in one go
cd "$destdir"
$curl -s -S -f -O --user $user "ftp://$server/From_econ_test/Archive{Mon,Tue}{0015,0745}.zip"
#Here we unzip the files
for file in *.zip
do
echo $file >>$LOG
unzip -uo $file
done
#Here we move the original zipped files on ServerB once they have unzipped
mv -f *.zip Zipped_files
|