SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Runandwait timeout

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Runandwait timeout
Author Message
Wim Abts



Joined: 13 Feb 2004
Posts: 5

Post Runandwait timeout Reply with quote

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?

Fri Feb 13, 2004 6:43 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Runandwait timeout Reply with quote

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?

Fri Feb 13, 2004 8:53 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.