Retry upon ftp failure

Flip video Minohd 8gb flash drive hd cam...
January 13, 2010 at 14:19:21
Specs: Solaris 9
I am using the following code in a C Shell script to transfer files to a remote server:

ftp -n <<DO_FTP1
quote user $user_name
quote pass $password
put $js_file_name
put $FinalZipFile

This code works great except on those rare occasions when the remote server is down or, for whatever reason, fails. This causes my code to fail and makes my already tense users angry. This code runs on both Unix and Linux. Is there a way to force a retry after a specified time period if there is a failure of the ftp command? Also, is there a way to make the hash mark print at something other than every 8192 bytes (something more like every GB)?

Paul Hudgens

See More: Retry upon ftp failure

January 14, 2010 at 00:59:36

does the option -r <waittime-in-secs> help?
(ftp server -r 60)

I can't test it, but the hash command accepts sizes larger than 8192 bytes, e.g hash 10000000

just give it a try


Report •
Related Solutions

Ask Question