Stop cron from mailing the user
You can set the MAILTO
variable in your crontab.
Just type the following at the top of your crontab (crontab -e
):
MAILTO=""
and cron will not send any mail for any of the jobs. If you have to disable mails for a specific task, use the following:
@hourly /path/to/script.sh >/dev/null 2>&1