The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 09:47 PM
sqlplus session being able to see unix variables session within a script 435 Gavea Shell Programming and Scripting 2 07-03-2006 10:11 AM
Force user to disconnect if no activity MarkN UNIX for Advanced & Expert Users 3 06-07-2004 02:22 PM
automatic login from windows by a telnet session Herwin UNIX for Dummies Questions & Answers 3 08-15-2002 11:56 AM
Connect over ssh, start something, disconnect sTorm UNIX for Dummies Questions & Answers 2 07-12-2002 02:36 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-21-2006
happyv happyv is offline
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!!!!
  #2 (permalink)  
Old 12-21-2006
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0