CRON | how to pipe stderr to /dev/null

If you get a lot of mails to your root account with output from your cronjob then it can be solved by redirecting your output from the job to /dev/null by adding >/dev/null 2>&1 to the end of your crontab line.

Like this example from my /etc/crontab where i sync my nameservers during the day

*/30 5-23 * * * root /root/sync_dns >> /var/log/sync-dns.log >/dev/null 2>&1