nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Cron is sending mail to root

This is a discussion on Cron is sending mail to root within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; My sendmail service is stopped and cron sends mail to root, those mail get queued up in clientmqueue directory. I ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-11-2009, 11:29 AM
Junior Member
User
 
Join Date: Nov 2009
OS: RHEL
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vinu1 is on a distinguished road
Question Cron is sending mail to root

My sendmail service is stopped and cron sends mail to root, those mail get queued up in clientmqueue directory. I want to stop cron from sending mails. All jobs run under root. And cron sends mail to root. I have tried to set MAILTO="" in /etc/crontab, but its not working. Is there any other way to stop mails from cron to root? Thanks in advance.

Vinu
Reply With Quote
  #2 (permalink)  
Old 19-11-2009, 03:14 PM
Administrator
User
 
Join Date: Apr 2007
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 10
root has disabled reputation
Default

Try appending the >/dev/null 2>&1 to cron job:
Code:
5 * * * * /path/to/command >/dev/null 2>&1
0 3 * * * /root/backup.sh >/dev/null 2>&1
Reply With Quote
Reply

Tags
cron , cronjobs , crontab , linux cron , unix cron


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Postfix Not Sending Mail manish_2479 Mail Servers 3 10-09-2009 01:38 PM
How to check "incorrect mails" before sending it through my mail server? nishith Mail Servers 1 28-04-2009 01:41 AM
Sending mails using OUTLOOK through SQUID prahladkumar Mail Servers 0 06-03-2009 10:26 AM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 01:36 AM
sending a message to all users bash Shell scripting 1 17-07-2006 02:16 AM


All times are GMT +5.5. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38