Very Strange FTP script problem ???
I am trying to upload a file to a ftp server via cron. The script fails with the following error .
Server1 # ./ftprunner.orig
Connected to XYSW.YXTQ.
220-FTPTCPD1 IBM FTP CS V1R5 at XYSW.YXTQ, 11:55:32 on 2005-08-08.
220 Connection will close if idle for more than 5 minutes.
---> USER john
421 Service not available, remote server timed out. Connection closed
If i ftp manually , i can upload the server without any problems using the same userid and passwd. So it is not permissions.
Here is the script , (user is john, with passwd john123)
ftp -vnd XYSW.YXTQ <<-EOF
user john john123
put testfile testfile
The same script works if i change the server name to another ftpserver. So the script is fine , no syntax problems.
Any clues guys ??? Thanks