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
help me in sending parameters from sqlplus script to unix shell script Hara Shell Programming and Scripting 2 01-29-2008 12:31 PM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 12:06 AM
here document to automate perl script that call script hogger84 Shell Programming and Scripting 3 10-22-2007 07:15 AM
returning to the parent shell after invoking a script within a script gurukottur Shell Programming and Scripting 5 09-26-2006 04:05 AM
return valuse from child script to parent script borncrazy Shell Programming and Scripting 1 08-20-2004 12:39 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-16-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
Red face ftp script

Hi friends,
There is a shell script on the client side system which does ftp of files.
But i see that some files are being ftp'd and it is failing at one particular.
Actually this is a cron job which executes for every 15 minutes and some times the ftp of all files is successful.
i am getting the error like the line below
150 Opening ASCII mode data connection for datafile.
426 Data connection closed, receive file datafile aborted.
Can any one tell me why this is failing ?
what can be the reasons of such failures ?
Please help
Thanks in advance
Veera
Reply With Quote
Forum Sponsor
  #2  
Old 06-16-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,029
FTP Return Codes
Reply With Quote
  #3  
Old 06-16-2005
Registered User
 

Join Date: Mar 2005
Location: INDIA
Posts: 60
ftp script

Hi vgersh,
Thanks for the reply ..Seen the list of FTP return codes.
So if there is such a error like
426 Connection closed; transfer aborted.
doest it mean the only way is to restart the ftp session ?
I mean do we have to run the script again ?
is that the solution ?
thanks in advance
Veera
Reply With Quote
  #4  
Old 06-16-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
This is usually a firewall issue. You will need a network engineer with a sniffer to be sure. ftp is a hard protocol for firewalls because it needs two connections and one of them is backwards. Passive mode ftp helps some firewall problrms, but not all ftp clients and servers support it. For example, HP's ftp client supports it. You just type "passive" command. Now any get's and put's are in passive mode. Passive mode still uses two connections, but there is no switching of client and server. Look in your docs to see if you can try passive mode. If not you need that network engineer.
Reply With Quote
  #5  
Old 06-17-2005
ssk ssk is offline
Registered User
 

Join Date: May 2005
Posts: 25
Thumbs down just one Q

Are you sure some files are getting transferred and only one perticular file is not ?
Can you check the size of the file not getting transferred ?
Check transferring this file using ftp on command line yourself and check if its taking time for transfer the file.
Also check on remote end if some part of file is transferred or nothing is transferred.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0