Shell Script to Zip / FTP / Delete transactional files.

Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2007
Posts: 2
Reputation: jethfo is an unknown quantity at this point 
Solved Threads: 0
jethfo jethfo is offline Offline
Newbie Poster

Shell Script to Zip / FTP / Delete transactional files.

 
0
  #1
Jun 7th, 2007
Calling All Shell Scripters,

I am a web developer needing assistance from someone with shell scripting expertise. Does anyone have a unix shell script that can look into a directory and identify any "*.zip" files and ftp them to a remote server? Upon successful completion of the FTP transfer I want to delete the ZIP file from the local server.

I plan to automate this task using a CRON job & want to be sure a file does not get sent twice, which could potentially happen if the CRON job is called again while a file is still in transit.

Any assistance would be greatly appreciated!

Jeff
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 7
Reputation: slbit is an unknown quantity at this point 
Solved Threads: 0
slbit slbit is offline Offline
Newbie Poster

Re: Shell Script to Zip / FTP / Delete transactional files.

 
0
  #2
Jun 11th, 2007
I have seen a working ftp upload script on this same forum just browse to page 3 or 4, you'll find it there.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1
Reputation: tabish.asm is an unknown quantity at this point 
Solved Threads: 0
tabish.asm tabish.asm is offline Offline
Newbie Poster

Re: Shell Script to Zip / FTP / Delete transactional files.

 
0
  #3
Jul 6th, 2007
Originally Posted by slbit View Post
I have seen a working ftp upload script on this same forum just browse to page 3 or 4, you'll find it there.
where is the script?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 6160 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Shell Scripting
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC