Topic "Log only output of synchronization job"

Author Message
WouterT

Guest


Hi all,

Is it possible to only log the output of the sync command.

I'm running:
synchronize REMOTE -mirror -delete "c:\temp" /home/wouter/Temp

And I only want the output of this command stored in a log file, so I can use it again in an email script.
So I only want to know what's been modified (del/copy etc) in the transfer, below is the part I need.

Code:

Comparing...
Local 'c:\temp\2' => Remote '/home/wouter/Temp/2'
Synchronizing...
Local 'c:\temp' => Remote '/home/wouter/Temp'
'/home/wouter/Temp/log.txt' deleted
winscp>


The /log with winscp.exe gives me way to much info.

Anyone who can point me in the right direction.

Thanks!
Wouter
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Use XML logging.
_________________
Martin Prikryl
WouterT

Guest


prikryl wrote:


Thanks for the reply, I'll look into the xml logging.
thibeau

Guest


hi, looking to do the same thing, just so I don't have to re-invent the wheel can you post your solution?
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