When I use getfile the connection is aborted.
When I use the ftp command get in the Windows environment It all goes well.
Regards,
Jan Kuijt
Code: Select all
Output:
verbose(on)
OPENHOST("ftp.xxxxxxxx.nl","xxxxxxx","xxxxxxxx")
SETPASSIVE(enabled)
CHDIR("out")
SETTYPE(ASCII)
LOCALCHDIR ("G:\PAC\ImportExport\vanCB\Voltooid")
GETFILE ("*.nui")
CLOSEHOST
230-*** Welcome XXXXXXXX! ***It seems that the MLSD command is not accpted by the ftp-server. But why not?
230-
230 User logged in, proceed.
SYST
215 UNIX Type: L8
FEAT
211-Extension supported
CLNT
MDTM
MDTM YYYYMMDDHHMMSS[+-TZ];filename
SIZE
SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
REST STREAM
XCRC filename;start;end
MODE Z
MLST Type*;Size*;Create;Modify*;Win32.ea*;
211 End
Detected Server Software: Serv-U 5.x/6.x
PWD
257 "/" is current directory.
Connected.
SETPASSIVE(ENABLED)
Enabling passive mode.
CHDIR("out")
Changing current remote directory to out
CWD out
250 Directory changed to /out
PWD
257 "/out" is current directory.
SETTYPE(ASCII)
Setting file transfer type to ASCII.
LOCALCHDIR("G:\PAC\ImportExport\vanCB\Voltooid")
Changing current local directory to G:\PAC\ImportExport\vanCB\Voltooid
GETFILE("*.nui")
TYPE A
200 Type set to A.
MODE Z
200 MODE Z ok.
PASV
227 Entering Passive Mode (xxx.xxx.xxx.xxx,15,163)
Opening data connection to xxx.xxx.xxx.xxx Port: 4003
MLSD
An established connection was aborted by the software in your host machine.
Server closed connection
***** GETFILE Error #23: Connection closed.
***** GETFILE Error #3: Not connected and not logged in to remote server.
CLOSEHOST
***** CLOSEHOST Error #12001: Not connected.
When I use the ftp command get in the Windows environment It all goes well.
Regards,
Jan Kuijt
Hi,
I think that the problem is not because of MLSD. Try deactivating passive mode:
I think that the problem is not because of MLSD. Try deactivating passive mode:
Code: Select all
The ftp.exe that comes with windows uses non-passive mode by default. If it works this way ScriptFTP should also work.SETPASSIVE(DISABLED)
liked Script FTP? Try our other product Email Parser