Hi,
i have some problem in FTPing a file, googling could not help around.
I have a shell script wriiten on my linux machine(Server A) that get's a csv file from another server(Server B).
Every minute , a csv file is updated on Server B and every 30 secs the Server A gets the file from B.
Off late, my shell scripts throws an error and does not get the file. but next time i restart the shell, it goes fine .
the log file shows the error "550 abc.csv: The system cannot find the file specified"
i am also posting the error log file , please advice .
------------------------------------------------------------------------------------- ########################################################## FTP start Time: 09:30:00 Current time: 11:13:16 Time difference : -6196 FTP start Time: 09:30:00 FTP end time: 23:30:59 Time difference : -50459 FTP end Time: 23:30:59 Current time: 11:13:16 Time difference : 44263 ##########################################################
Fetching remote file: c:/Inetpub/ftproot/abc.csv Before ftp FTP_MACHINE:X.X.X.X FTP_USER:abc FTP_USER_PASSWD:xxxxxx FTP_FILE_REPOSITORY:/home/xxxx/xxxx/data REMOTE_FILE_NAME:abc.csv Connected to X.X.X.X 220 XXXXX Microsoft FTP Service (Version 5.0). 331 Password required for polluser. 230-Welcome To XXX FTP 230 User abc logged in. Local directory now /home/xxxx/xxxx/data 200 Type set to I. Carriage Return stripping off. 227 Entering Passive Mode (X,X,X,X,6,86). 550 abc.csv: The system cannot find the file specified. 221 FTPed file not found, exiting FTPed file not found, exiting ____________________________________________________________
On 9/15/06, Gòþï kgopik@gmail.com wrote:
Hi,
i have some problem in FTPing a file, googling could not help around.
I have a shell script wriiten on my linux machine(Server A) that get's a csv file from another server(Server B).
Every minute , a csv file is updated on Server B and every 30 secs the Server A gets the file from B.
Off late, my shell scripts throws an error and does not get the file. but next time i restart the shell, it goes fine .
What does it mean by restarting the shell?.. needs some brief information.
the log file shows the error "550 abc.csv: The system cannot find the file specified"
550 errors are usually due to permission problems or some timestamp problems which are the problems of Server B. Try restarting FTP service in Server B.
i am also posting the error log file , please advice .
########################################################## FTP start Time: 09:30:00 Current time: 11:13:16 Time difference : -6196 FTP start Time: 09:30:00 FTP end time: 23:30:59 Time difference : -50459 FTP end Time: 23:30:59 Current time: 11:13:16 Time difference : 44263 ##########################################################
Fetching remote file: c:/Inetpub/ftproot/abc.csv Before ftp FTP_MACHINE:X.X.X.X FTP_USER:abc FTP_USER_PASSWD:xxxxxx FTP_FILE_REPOSITORY:/home/xxxx/xxxx/data REMOTE_FILE_NAME:abc.csv Connected to X.X.X.X 220 XXXXX Microsoft FTP Service (Version 5.0). 331 Password required for polluser. 230-Welcome To XXX FTP 230 User abc logged in. Local directory now /home/xxxx/xxxx/data 200 Type set to I. Carriage Return stripping off. 227 Entering Passive Mode (X,X,X,X,6,86). 550 abc.csv: The system cannot find the file specified. 221 FTPed file not found, exiting FTPed file not found, exiting ____________________________________________________________
-- Thanks , GK
If you aim to fly, then don't hang around with chickens. Why? Because chickens can't fly.
http://spaces.msn.com/gopimumbai/
What does it mean by restarting the shell?.. needs some brief
information. its a shell script, i kill it and restart the shell.
550 errors are usually due to permission problems or some timestamp
problems which are the problems of Server B. Try restarting FTP service in Server B.
could it be due the fact the file at that point of time is being updated
and Server A is trying to ftp the file?