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.
|