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_unzipp ed_log
for i in `ls *.zip`;
do
echo $i >> ~/Desktop/Economist_unzipp ed_log
unzip -uo $i
done
echo `date` >> ~/Desktop/Economist_unzipp ed_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
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_unzipp
for i in `ls *.zip`;
do
echo $i >> ~/Desktop/Economist_unzipp
unzip -uo $i
done
echo `date` >> ~/Desktop/Economist_unzipp
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.