Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Cron Job Notifications

Posted on 2005-03-23
Medium Priority
Last Modified: 2010-03-18
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?  
Question by:onsite_tech
LVL 14

Accepted Solution

pablouruguay earned 1200 total points
ID: 13613055
you cand disable in


LVL 38

Assisted Solution

wesly_chen earned 800 total points
ID: 13614064
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)

Author Comment

ID: 13618983
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!

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question