Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

Set email alerts for cron jobs

linux, QuickFix, Technical | 0 comments

After scheduling the cron jobs, its important to ensure that they are running without any errors.  In such cases it’s important to set email alerts for crontab.

To set email alert for your cron jobs;

Edit the crontab entry:

$ crontab -e

and enter the email id to which alerts should be sent out:

[email protected]

If MAILTO is defined but empty (MAILTO=”"), no mail will be sent.

MAILTO=""

Otherwise mail is sent to the owner of the crontab.

Related Articles

Related