Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Command line synchronization - logging output

I'll try to fix this in the next version.
Guest

Command line synchronization - logging output

I am running winscp3.com on the command line to manually synchronize a directory over SFTP. This works great.

What I want to do however, is schedule a job to run this at regular intervals and log the output to a text file.

I created a batch file to do this that contains:

WinSCP3.com /console /script=sync.txt >> sync.log

Problem is that because of the way winscp3.com's synchronize outputs its file transfers, updating its progress with control characters, only one of the files transferred is ever written to the sync.log.

e.g.

...
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user@host
/cygdrive/c/remotedir
C:\Documents and Settings\localdir
Local 'dir' => Remote 'dir'
...\Test\test1.txt | 0 kB | 0.0 kB/s | ascii | 100%

Does anyone know of a way to record all of the output?