i succeeded in downloading 1 file , with the code posted in the 1 post (with get Filename in it)
so the ftp is fine, but there's a problem with the connection like we establish it...... could probably the mget with a buffer have problems with epsv4 ???
certainly the ftp-proxy does only work with passive mode (our admin told me), cause in active mode it would open another channel for every action and that will brought our connection to the firewall
i think it is the mget $buffer command which leads to the error "ftp: No control connection for command."
and because of the output, it seems that for every max file package, the while do loop runs first for every file, and all the send_ftp were executed at last, so that i get this output...
Quote:
DEBUG:File Name=[XXXX]
DEBUG:File Name=[XXXX]
DEBUG:File Name=[XXXX]
DEBUG:File Name=[XXXX]
DEBUG:File Name=[XXXX]
ftp: No control connection for command.
ftp: No control connection for command.
ftp: No control connection for command.
ftp: No control connection for command.
i would except something like this:
Quote:
DEBUG:File Name=[XXXX]
ftp: No control connection for command.
DEBUG:File Name=[XXXX]
ftp: No control connection for command.
DEBUG:File Name=[XXXX]
ftp: No control connection for command.
DEBUG:File Name=[XXXX]
ftp: No control connection for command.
or is this function send_ftp executed in another thread, so that it is trying to connect and failing after the while do loop is finished for 1 package?
oh man scripting for an ftp behind an ftp-proxy really sucks :X