Differences

This shows you the differences between the selected revisions of the page.

2009-02-20 2009-03-05
expand to synchronizations (martin) 4.2 bug 95 logging_xml (martin)
Line 69: Line 69:
To check results of the script you can: To check results of the script you can:
  * Check exit code of WinSCP. See example below and [[faq_script_result|another FAQ]].   * Check exit code of WinSCP. See example below and [[faq_script_result|another FAQ]].
-  * Save and inspect log file. Use [[commandline|command-line]] parameter ''/log''.+  * Save and inspect log file. [[xml_logging|XML log format]] is recommended. Use [[commandline|command-line]] parameter ''/log''.
  * Save and inspect output of the script. Use output redirection (''> filename'' at the end of commandline executing WinSCP). Note that you can redirect output of ''WinSCP.com'' only (see [[scripting#console|documentation]]).   * Save and inspect output of the script. Use output redirection (''> filename'' at the end of commandline executing WinSCP). Note that you can redirect output of ''WinSCP.com'' only (see [[scripting#console|documentation]]).
Once you find out what was the result of the script, you can perform any action you like. E.g. after evaluating exit code of WinSCP, you can send a "success" or "error" email. For that use any command-line email client you like, e.g. [[http://glob.com.au/sendmail/|sendmail]]: Once you find out what was the result of the script, you can perform any action you like. E.g. after evaluating exit code of WinSCP, you can send a "success" or "error" email. For that use any command-line email client you like, e.g. [[http://glob.com.au/sendmail/|sendmail]]:
- 
<code> <code>