Differences
This shows you the differences between the selected revisions of the page.
2009-03-05 | 2009-03-10 | ||
4.2 bug 36 ftps#certificate (martin) | exit code is only relevant (martin) | ||
Line 70: | Line 70: | ||
===== [[results]] Checking script results ===== | ===== [[results]] Checking script results ===== | ||
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 (exit code is the only relevant and reliable way to check if script completed successfully). See example below and [[faq_script_result|another FAQ]]. |
* Save and inspect log file. [[logging_xml|XML log format]] is recommended. Use [[commandline|command-line]] parameter ''/log''. | * Save and inspect log file. [[logging_xml|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]]). |