Is it possible..when ftp session disconnect and it can automatic run again?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Is it possible..when ftp session disconnect and it can automatic run again?
# 1  
Old 12-21-2006
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  
Old 12-21-2006
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to set automatic run?

Hi, I have a script in my home directory. it has to be run every day. as of now, im manually running as ./myscript.sh Can someone please tell me how to set it as automatic run (runs everyday at specific time ) so that it runs even if im not there. (9 Replies)
Discussion started by: JSKOBS
9 Replies

2. Shell Programming and Scripting

automatic FTP failed

I have automated ftp for different scripts. every script uses different login and passwords for different server. it reads the username and password from netrc. there is 1 particular script that is failing. this script is failing in FTP step. i have checked the logs it says login failed. but... (5 Replies)
Discussion started by: dazdseg
5 Replies

3. Shell Programming and Scripting

Automatic FTP

Hi I am looking for automatic FTP script from UNIX to UNIX servers. I have two problems that anyone may help: 1- The directory where the files have to be FTPed is varied, where it is identified by the date of today (YYYYMMDD) 2- the files come every 15 minutes and named by the time with form... (2 Replies)
Discussion started by: akhadoor
2 Replies

4. Shell Programming and Scripting

Cron job vanishes if i disconnect the session upruptly

Hi Am logging in to the server as root. Using the export EDITOR=vi option before editing the cron file editing the crontab entry using crontab -e option the additional jobs which i added can be seen immediately, but when i disconnect the session upruptly the cron entry vanishes the next time... (4 Replies)
Discussion started by: aemunathan
4 Replies

5. AIX

.netrc and Automatic ftp problem

Guy's We have two AIX servers Server1 and Server2 and we have created user1 in Server1 and Server2 ... and .netrc file was confiured under /home/user1 with the below line machine server2 login user1 password abc1234567 -rw------- 1 user1 staff 159 Sep 28 2004 .netrc ... (7 Replies)
Discussion started by: ITHelper
7 Replies

6. SCO

Automatic FTP script

We are using SCO OS 5.05 server and we are doing a manual ftp to another SCO OS 5.05 server to backup our database. We are using the Bourne shell. We would like to automate the ftp backup of our database instead of doing it manually. It would be nice to run a script. Also would there be anyway... (4 Replies)
Discussion started by: texastig
4 Replies

7. Shell Programming and Scripting

after server disconnect ftp tranfer......

Hi, I have a problem for ftp file to server. If the server due to some reason (such as unstable) and disconnect my ftp script. Can the ftp keep automatic retry to connect? If yes, the files can be keep sending to host without duplicate? HOST=hostname USER=happyv PASSWD=happyv exec 4>&1... (2 Replies)
Discussion started by: happyv
2 Replies

8. Shell Programming and Scripting

Automatic ftp job

I'm slowly (very slowly) learning csh and the UNIX underpinnings of Mac OS X so please bear with me. I want to be able to ftp a file to my personal webspace at work. I can do this by manually going in and doing ftp host.domain.com user: password: cd /folder put myfile etc.. I'd like... (4 Replies)
Discussion started by: DumDum
4 Replies

9. UNIX for Dummies Questions & Answers

automatic login from windows by a telnet session

Help me please, I wanna know if it's possible to define in windows the option when somebody starts a telnetsession to a unix machine it automatically logs in with the username and password of this user. Or if there is a possibility to set the username and password to an Icon on the users... (3 Replies)
Discussion started by: Herwin
3 Replies

10. UNIX for Advanced & Expert Users

Automatic FTP

Hi, We have a requirement to transfer(FTP) files created in a particular directory (In Solaris) to NT machine. Also this process neeeds to be automated. I belive a command MAIL in UNIX could be used to find new files created in a directory, but this just sends the file list to the logged user.... (5 Replies)
Discussion started by: shyamrk
5 Replies
Login or Register to Ask a Question