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.
Hello,

I'm trying to SYNC with files but don't suncrhronise any file:
I Get:
OPENHOST("192.168.0.168","installer",******)
Connecting to 192.168.0.168
Connected.

SETCLOCKDIFF("3600")
Server-client clock time difference manually set to 3600 seconds.

SYNC("C:\CSV","/CSV",DOWNLOAD,SUBDIRS)
Clock time difference is 164 seconds.
Synchronizing local directory C:\CSV from /CSV.

CLOSEHOST
Disconnected.
Can you help me? why don't Sync?
Thanks
Hello,

Could you post your script output with verbose mode enabled? This way ScriptFTP will show more details about what is going on. If you post the part that comes just after SYNC is enough. Enabling verbose mode is done this way:
FTP Script
  1. # on the top of the script file
  2. VERBOSE(ON)
Hello,
Thanks for answer,
There are the details:
SYNC("C:\CSV","/CSV",DOWNLOAD,SUBDIRS)
CWD /CSV
250 Requested file action okay, completed.
PWD
257 "/CSV".
Clock time difference is 164 seconds.
Synchronizing local directory C:\CSV from /CSV.
PASV
227 Entering Passive Mode (192,168,0,168,4,216).
Opening data connection to 192.168.0.168 Port: 1240
LIST
125 Data connection already open; transfer starting.
226 Closing data connection.
86 bytes transferred. (114 bytes/s) (749 ms)
CWD /
250 Requested file action okay, completed.
PWD
257 "/".


CLOSEHOST
QUIT
221 Service closing control connection.
Client closed the connection.

Disconnected.
86 bytes transferred.
The file list that the server is sending is only 86 bytes long. Could you let me know how many files are in the FTP server?

For me it seems that the server is sending a file list that ScriptFTP cannot understand.
Hello,

Under /CSV they are 2 subdirectories, wich one with 1 subdirectory. Every subdirectory has only .csv file.
In total are 17 .csv files.

I don't know that is importante but, the only way that works to download file, it's with the commands:

GETFILE("/csv/2011/09/2011-09-12.csv")

Thanks.
ScriptFTP should go through that subdirectories and download the CSV files... I really have no idea what could be wrong, sorry. The only way to troubleshoot this is to let me connect to your FTP server and do some tests from here. Contact me by email at scriptftp@scriptftp.com if you want me to do so.