Get Cron Job execution notification via Mail

|
| By Webner

Whenever a cron job is executed, one can get email notification of cron job execution if the cron job doesn’t run successfully or there is a bug in cronjob file.

These are the steps in Terminal

1.crontab -e
2.MAILTO = xyz@gmail.com
3.Write cronjob.
1

2

Below is the cronjob error email:

3

Leave a Reply

Your email address will not be published. Required fields are marked *