The ftpresult, mailresult, and fileresult predefined status flags can be used to determine the result of the last executed command. The flags will be set to success if the command completed successfully. Errors may be reported by setting a program exit code, printing an error message, writing out an error file, or even sending out an email message.
Some examples are
|