I am using ftp from within a scheduled batch file to download virus definitions from a major anti-virus site. The script connects, and gets a listing of definition files using ls. Once I have this list I check if the latest definition is newer than the one I have and then set about downloading it.
The problem I have is that occasionally the ftp server appears to not reply to the ls command. After three minutes I get an error as follows:
ftp> ls 200 PORT command successful. 425 Can't build data connection: No such file or directory. ftp> quit
I queried the supplier and they have said “we don’t provide support to users using scripts to download updates” (despite the script being published in their help system). I have seen comments relating to the reliability of the standard ftp client, so I am wondering where the problem actually arises.
Do I suspect my ftp client (WinNT sp6a server or W2000 sp3 workstation) or is the problem the behaviour of the server?
tia,
Marty