Topic "/log in script automation - Question!"

Author Message
Marcel

Guest


Hiyo!

I wrote a small vb.net application which help me to back up my folders with sftp. the synchronize script work fine and the data get saves successful.

i want to implement some kind of error notification if something fail while synchronize (for example permissions or whatever). so i use the parameter "/script=c:\errorlog.txt".

my problem is, this script get pretty huge. (1 mb per 10 mb syncronized files) and even if no error accured the log is huge. its ok, i understand why - but is there any option that only errors come in the log? it would make it much easyer to test the success after the batch run.

THX!
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
You should check for exit code of the script instead of parsing a log file. Please read FAQ.
_________________
Martin Prikryl
Marcel

Guest


Fine but then i have a "true" or a "false". problem is, i need to report detail information -> what files failed and why they failed.
Guest




hm i tried to generate an error, exit code still 0

Sad
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
What kind of error? How do you check for exit code?
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