You get 'job finished' message because the job 'ignore errors' option is enabled. ProcessGetExitCode can be used to check process termination status. Call it immediatelly after RunAndWait. If the return value is -100 then the process was terminated after timeout occurred. See ProcessGetExitCode topic and script example in the on-line help for more details. : Hi, : when i use runandwait with a timeout, the job gets terminated and is reported : as failed, but the e-mail message send is not the job-error mail message. : The 'job finished' message is send. : Is there a way to trap the timeout in the script?
|