Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8734

Unable to send mail using System_Mail_Send

$
0
0

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.


Viewing all articles
Browse latest Browse all 8734

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>