How to stop email report from Cron <root@machine> (hourly)
Solution 1:
Just add below to /etc/crontab
MAILTO=""
to stop crontab from sending email totally edit /etc/sysconfig/crond
and add this CRONDARGS='-m off'
.
Save and restart crond.
Solution 2:
When cron starts a process, it captures any output that reaches stdout and stderr, and sends that in an email. To prevent these emails, you can re-direct the stdout and stderr, either to a logfile that you monitor, or /dev/null, if you don't care.
17 * * * * root cd / && run-parts --report /etc/cron.hourly 2>&1 > /dev/null