The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2006
Registered User
 

Join Date: Sep 2006
Posts: 209
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!!!!
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-21-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0