after server disconnect ftp tranfer......


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting after server disconnect ftp tranfer......
# 1  
Old 12-19-2006
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
ftp -nv >&4 2>&4 |&

print -p open $HOST
print -p user $USER $PASSWD
print -p cd csl
print -p binary
print -p put CDN00173.gz
print -p put CDN00174.gz
print -p put CDN0175.gz

wait
exit 0


150 Ready to receive "/CDN00174". Mode STREAM Type BINARY.
netout: Broken pipe
421 Server is going offline. Control connection closed.
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.
Not connected.

Last edited by happyv; 12-19-2006 at 10:16 PM..
# 2  
Old 12-20-2006
yes, something like : "if then else", or "while loop" with implementing retry
# 3  
Old 12-20-2006
Quote:
Originally Posted by sysgate
yes, something like : "if then else", or "while loop" with implementing retry
Thanks..but can you give me some idea or code for this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Implement FTP server on RHEL server without using FTP client

We have RHEL 5.8 in our environment, I had a query whether we can implement an FTP server using vsftpd package and Linux configurations like setsebool without using any external FTP clients like FileZilla etc. I am very confused on this. The FTP functionalities that should be present are download &... (3 Replies)
Discussion started by: RHCE
3 Replies

2. Shell Programming and Scripting

how do I infinite loop (reconnect) to auto disconnect telnet server

I want the text based Star Wars movie at towel.blinkenlights.nl to loop infinitely. It plays the movie and then disconnects my session? Can anyone think of a way to make my unix machine automatically reconnect over and over? EDIT no commands are required are the connection its just in and... (3 Replies)
Discussion started by: herot
3 Replies

3. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

Hello All, I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir. rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed. Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies

4. Windows & DOS: Issues & Discussions

Office server => laptop =>client server ...a lengthy and laborious ftp procedure

Hi All, I need your expertise in finding a way to solve my problem.Please excuse if this is not the right forum to ask this question and guide me to the correct forum,if possible. I am a DBA and on a daily basis i have to ftp huge dump files from my company server to my laptop and then... (3 Replies)
Discussion started by: kunwar
3 Replies

5. Red Hat

when users ftp to server the timezone reflected is UTC but the server is set to TZ in localtime

Guys, Need your help coz my server runs in local time GMT +8, but when client use ftp and login, the resulting timestamp seen in each file is in UTC format. We need to set that the time should be the same as GMT +8 when in ftp session. I am using RHEL 5.3. root@]# ll total 1740... (2 Replies)
Discussion started by: shtobias
2 Replies

6. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

7. UNIX for Dummies Questions & Answers

FTP tranfer script

Hello everyone I have two UNIX servers and every day I want to automatically move files from server2 to server1 every day Server1 Folder /mkg/billing Server2 Folder /lh2/kly/billing I need a FTP file transfer script, plus I don't need the same files from server2 move every day only... (1 Reply)
Discussion started by: sheriweb
1 Replies

8. Shell Programming and Scripting

ftp script not able to connect to ftp server.

I have the following ftp script to get files from a remote location. However, on running the script I find that I am not even able to connect to ftp server. I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP. IP used here is a dummy IP. What can go... (3 Replies)
Discussion started by: gram77
3 Replies

9. Shell Programming and Scripting

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!!!! (1 Reply)
Discussion started by: happyv
1 Replies

10. UNIX for Dummies Questions & Answers

How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved )

-------------------------------------------------------------------------------- How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) Could anyone help me out. :confused: Thanks (0 Replies)
Discussion started by: Vietnam
0 Replies
Login or Register to Ask a Question