Hello All,
I am new to Cronacle and learning to write scripts. I have written a script which sends mail using SYSTEM_MAIL_CONFIGURE and SYSTEM_MAIL_SEND when a job fails i.e. the Job status turns to Error.
But my problem is SYSTEM_MAIL_CONFIGURE and SYSTEM_MAIL_SEND are getting completed first and whereas the job i am tracking for Error is still in Running state. How to ensure that the job used for sending mails get executed only once the above job has completed execution so that i can check its status for Error and than only i trigger the SYSTEM_MAIL related jobs.
Also i have to write a generic script which works for any job so i cannot use Alerting module.
Can somebody please advice me on how to go about this one?
Thanks.