/log in script automation - Question!

Advertisement

Marcel
Guest

/log in script automation - Question!

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!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,493
Location:
Prague, Czechia

Re: /log in script automation - Question!

You should check for exit code of the script instead of parsing a log file. Please read FAQ.
_________________
Martin Prikryl

Reply with quote

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,493
Location:
Prague, Czechia

What kind of error? How do you check for exit code?

Reply with quote

Advertisement

You can post new topics in this forum