SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job dependency

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job dependency
Author Message
Abi Udhay



Joined: 24 Jul 2002
Posts: 1

Post Job dependency Reply with quote

Suggest me an effective way to specify job dependency.
I am running two different VB apps that creates a log file in case of error and the scheduler should stop, if there is an error in one job and not execute the next one.
Right now, eventhough the appln. errors out, the 24x7 steps thru. the next job and the 24x7 log doesn't say anything.
Kindly suggest.
thanks
Abi.

Wed Jul 24, 2002 11:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: Job dependency Reply with quote

Create a script type job. For the script code the following

Dim process_id, number
Dim files_found, string
Dim errors_found, string

// run first process
RunAndWait "full 1st program name here", "", 0, procesS_id
// search log file for errors
FileSearchEx "log directory here", "log file name here", "error", files_found
NotEqual files_found, "", error_found
IfThen error_found, EMAIL_ME

// run second process if errors not found
RunAndWait "full 2nd program name here", "", 0, procesS_id
Exit

EMAIL_ME:
// do error handling here, for example send an email to yourself
MailSend .... enter required setting here

: Suggest me an effective way to specify job dependency.
: I am running two different VB apps that creates a log file in case of error
: and the scheduler should stop, if there is an error in one job and not
: execute the next one.
: Right now, eventhough the appln. errors out, the 24x7 steps thru. the next
: job and the 24x7 log doesn't say anything.
: Kindly suggest.
: thanks
: Abi.

Wed Jul 24, 2002 11:23 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.