Set MAILTO Variable To Change Crontab Email
If MAILTO is defined (and non-empty), mail is sent to the user instead.
MAILTO="sysadmin@goyun.info"
@daily /root/scripts/daily.sh
MAILTO="cto@goyun.info"
* 10 * * * /root/scripts/report.sh
#
# Disable email alert for rest of jobs
#
MAILTO=""
#Other cron jobs
Comments
Post a Comment