Link to home
Start Free TrialLog in
Avatar of rakkad
rakkadFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Alert if CRON job has failed to start

Hi  

I need some assistance if writing a script that will produce a log file and send an e-mail notification if a CRON job fails to start
Avatar of David Favor
David Favor
Flag of United States of America image

Unsure exactly what you mean.

If a script or program has the execute bit enabled, then it will start.

What you're likely saying is you'd like all errors produced by your code to send an email.

Verify this is correct or clarify what you're asking.
ASKER CERTIFIED SOLUTION
Avatar of Dr. Klahn
Dr. Klahn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Adding MAILTO="foo@bar.com" to the top of a crontab will cause any output from the cron job to be emailed. T