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
Attached is the final part of the log file. Can you please see what is the issue here.