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 logxx.xxxx.xxx.xxx.com <<DO_FTP1
quote user $user_name
quote pass $password
ascii
put $js_file_name
bin
put $FinalZipFile
quit
DO_FTP1

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)?

Thanks,
Paul Hudgens
Denver
phudgens@slb.com


See More: Retry upon ftp failure

Report •

#1
January 14, 2010 at 00:59:36
hm.

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

Wollie


Report •
Related Solutions


Ask Question