![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| after server disconnect ftp tranfer...... | happyv | Shell Programming and Scripting | 2 | 12-20-2006 05:47 PM |
| sqlplus session being able to see unix variables session within a script | 435 Gavea | Shell Programming and Scripting | 2 | 07-03-2006 07:11 AM |
| Force user to disconnect if no activity | MarkN | UNIX for Advanced & Expert Users | 3 | 06-07-2004 11:22 AM |
| automatic login from windows by a telnet session | Herwin | UNIX for Dummies Questions & Answers | 3 | 08-15-2002 08:56 AM |
| Connect over ssh, start something, disconnect | sTorm | UNIX for Dummies Questions & Answers | 2 | 07-11-2002 11:36 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Is it possible..when ftp session disconnect and it can automatic run again?
Hi,
Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)? Please help!!!! |
| Forum Sponsor | ||
|
|
|
|||
|
I've used curl (Command-line URL http://curl.haxx.se/) to restart FTP sessions in "mid file" using the --continue-at offset option. You would need to write a wrapper script run at whatever interval desired to check the transfer. If the file were incomplete, it could then restart at the current file size + 1 byte.
Additionally, curl returns a non-zero return code if the transfer failed. With that, you could determine the appropriate byte offset and requeue your script using the at command. |
|||
| Google UNIX.COM |