Cron Job Notifications

It looks like every time my cron jobs run (which is every minute for one of them), they create an email and send it to the root@localmachine with the cron details.  is there a way i can disable this?  
LVL 1
onsite_techAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pablouruguayCommented:
you cand disable in

/etc/crontab

MAILTO=/dev/null
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wesly_chenCommented:
Pablouruguay's method will disable all user's crontab job notification.
You might want to use
crontab -e
* * * * *  (your cron job script)   > /dev/null 2>&1

So you can disable mail notification for certain crontab job or for yourself only. ( 2>&1 will include stderr and stdout messages)
0
onsite_techAuthor Commented:
Thanks both of you guys for the suggestions.  in this senario, i dont want any mail coming from cron because i need valid counts for how much mail goes through this box (since its secondary and shouldn't really get any email unless the primaries are down, i want to track how much mail bypasses the primary systems), but on other systems, i can see how disabling my "check the queue" scripts while leaving other, much more important scripts up can be useful. Thanks again both of you for your advice!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.