File download using scripting fails after few files

Advertisement

ronijohn
Joined:
Posts:
1
Location:
India

File download using scripting fails after few files

Hi

I have around 300 csv files in an FTP folder which I want to download using scripting. Below is contents of the script file I am using. The download works fine for the initial few files but after 8 or 10 or 14 (it varies each time) the download stops, with error messages "500 Unknown command" and "(ExtException) **Copying files from remote side failed.**" in the log file.

open -passive=off ftp://USERNAME:PASSWORD@SERVER_IP
lcd c:\csv
get *.csv
exit

Attached is the final part of the log file. Can you please see what is the issue here.

Thanks
Roni
Description: log file

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
31,624
Location:
Prague, Czechia

Re: File download using scripting fails after few files

Can you download all files using any other FTP client?

Reply with quote

Guest

Re: File download using scripting fails after few files

martin wrote:

Can you download all files using any other FTP client?

Yeah I was able to download using the ftp client. And yeah I have resolved the issue by changing to passive=on. Didn't know how it resolved the issue, but the problem is resolved.

Reply with quote

Advertisement

You can post new topics in this forum