PDA

View Full Version : How to stop cron job emails


kipper3d
03-24-2009, 03:19 PM
We are automation freaks here but getting tired of all the emails the cron jobs send out. Our perl scripts already send email if theres a problem. How do we get cron to stop sending emails?

I have commented out the root entry notification in /etc/aliases and the crontab config for root. and iworx. But I am still getting emails when cron runs.

Any ideas?

Thanks!

Justec
03-25-2009, 12:45 AM
I think you have to pipe the cron job to /dev/null or something like that. I forget exactly, but I've seen it on these forums before.

EDIT: Found it http://interworx.com/forums/showthread.php?t=501

kipper3d
03-25-2009, 01:11 PM
Thanks Justec, That indeed did the trick. I was hoping for a more central way of doing it for all cronjobs. but this should suffice for now.