Link to home
Create AccountLog in
Avatar of stuffedparrot
stuffedparrot

asked on

Move files from WamNet to server using ftp

Hello all,

I am a complete beginner at writing scripts and have been given a project to get me started.

I have been asked to write a script that will move .zip files from our WamNet! server (linux) to our server (Solaris 9) to keep as and when needed.

The files should be moved automatically as they finish uploading to the WamNet! server.

Once moved, the files are to be unzipped using the code the client has supplied:

echo `date` >> ~/Desktop/Economist_unzipped_log
for i in `ls *.zip`;
do
echo $i >> ~/Desktop/Economist_unzipped_log
unzip -uo $i
done
echo `date` >> ~/Desktop/Economist_unzipped_log

I'm sure I've left out some vital information. Please let me know whatever you need to know in order to make this work.

Thank you in advance,

Anthony
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer