Topic "Command line synchronization - logging output"

Author Message
Guest




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?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I'll try to fix this in the next version.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License