Command line synchronization - logging output

Advertisement

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?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum