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

ftp returns error codes like 300, 302, 202, etc. What error code are you getting?

I'm getting this error

421 Timeout (900 seconds): closing control connection

Plz recommend a possible solution.

thnx
Aru

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 :wink:

well you can set the ftp mode to hash. this keeps the connection active. This is done by typing the ftp command "hash"