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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server madhunk UNIX for Dummies Questions & Answers 5 01-31-2008 01:30 PM
Is it possible..when ftp session disconnect and it can automatic run again? happyv Shell Programming and Scripting 1 12-21-2006 10:34 PM
How can I tranfer an OS/ Unix (from old HD to new HD / include all files saved ) Vietnam UNIX for Dummies Questions & Answers 0 08-05-2006 12:27 AM
Force user to disconnect if no activity MarkN UNIX for Advanced & Expert Users 3 06-07-2004 03:22 PM
Connect over ssh, start something, disconnect sTorm UNIX for Dummies Questions & Answers 2 07-12-2002 03:36 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-19-2006
happyv happyv is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 209
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..
 

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 04:15 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