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
Every session is expiring within 1 minute if it kept idle. vamshikrishnab SUN Solaris 7 05-22-2008 02:07 AM
Every session is expiring within 1 minute if it kept idle. vamshikrishnab UNIX for Dummies Questions & Answers 1 05-21-2008 10:14 AM
FTP - To handle error while transferring files mahalakshmi Shell Programming and Scripting 1 04-04-2007 12:56 AM
Transferring hidden files with scp matrixmadhan UNIX for Dummies Questions & Answers 13 01-16-2007 12:00 PM
transferring files to and from remote computer yogi1 UNIX for Dummies Questions & Answers 6 05-28-2006 06:58 PM

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

Join Date: Dec 2005
Posts: 33
Stumble this Post!
FTP session expiring when transferring files... Need some solution

Hi All,

I am running a ftp script which is running fine even with crontab. But the problem is that when I connect to ftp server and transfer files , i observe that ftp session expires after few minutes and the file transfer is not completed as there are alot of files to be transfered .

Can somebody help me for that ?.


Thanks
Aru
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-12-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,837
Stumble this Post!
ftp returns error codes like 300, 302, 202, etc. What error code are you getting?
Reply With Quote
  #3 (permalink)  
Old 12-13-2005
Registered User
 

Join Date: Dec 2005
Posts: 33
Stumble this Post!
I'm getting this error

421 Timeout (900 seconds): closing control connection

Plz recommend a possible solution.


thnx
Aru
Reply With Quote
  #4 (permalink)  
Old 12-13-2005
Registered User
 

Join Date: Dec 2005
Location: MD
Posts: 18
Stumble this Post!
I have seen this before while using Passive FTP and many files being transferred via ftp. Try using active if you are not, and if that fails, compress the files you are trying to transfer into one. No problem then
Reply With Quote
  #5 (permalink)  
Old 12-13-2005
linuxpenguin's Avatar
Registered User
 

Join Date: May 2002
Location: India
Posts: 295
Stumble this Post!
well you can set the ftp mode to hash. this keeps the connection active. This is done by typing the ftp command "hash"
__________________
War doesnt determine who is right, it determines who is left
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:39 AM.


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