ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
When I use getfile the connection is aborted.
Code: Select allverbose(on) OPENHOST("ftp.xxxxxxxx.nl","xxxxxxx","xxxxxxxx") SETPASSIVE(enabled) CHDIR("out") SETTYPE(ASCII) LOCALCHDIR ("G:\PAC\ImportExport\vanCB\Voltooid") GETFILE ("*.nui") CLOSEHOST
Output:
230-*** Welcome XXXXXXXX! ***
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 serve
r.


CLOSEHOST
***** CLOSEHOST Error #12001: Not connected.
It seems that the MLSD command is not accpted by the ftp-server. But why not?

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:
Code: Select allSETPASSIVE(DISABLED)
The ftp.exe that comes with windows uses non-passive mode by default. If it works this way ScriptFTP should also work.