![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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.
|
|
#5
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |