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

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-12-2005
aarora_98 aarora_98 is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 33
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
  #2 (permalink)  
Old 12-12-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,789
ftp returns error codes like 300, 302, 202, etc. What error code are you getting?
  #3 (permalink)  
Old 12-13-2005
aarora_98 aarora_98 is offline
Registered User
  
 

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

421 Timeout (900 seconds): closing control connection

Plz recommend a possible solution.


thnx
Aru
  #4 (permalink)  
Old 12-13-2005
r0sc0 r0sc0 is offline
Registered User
  
 

Join Date: Dec 2005
Location: MD
Posts: 18
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
  #5 (permalink)  
Old 12-13-2005
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
  
 

Join Date: May 2002
Location: India
Posts: 295
well you can set the ftp mode to hash. this keeps the connection active. This is done by typing the ftp command "hash"
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 01:34 AM.


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