You would like to be notified via email of errors occurring while executing cron jobs.
I use CentOS and the file /etc/crontab for the configuration.
The first step I have done is:
and then I have appended this to each crontab entry:
That means this
24 4 * * * root /usr/sbin/ntpdate pool.ntp.org
24 4 * * * root /usr/sbin/ntpdate pool.ntp.org 2>/dev/null
In that way I should suppress the normal output and let error messages be sent.
I would like to know if you think what I have done is right and whether that has got any pitfall.