?
Solved

Cron Job Notifications

Posted on 2005-03-23
3
Medium Priority
?
306 Views
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?  
0
Comment
Question by:onsite_tech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

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

/etc/crontab

MAILTO=/dev/null
0
 
LVL 38

Assisted Solution

by:wesly_chen
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)
0
 
LVL 1

Author Comment

by:onsite_tech
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!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

770 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