Linux / UNIX Tech Support Forum
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 ...
Register free or login to your account to remove all advertisements.
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
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 |
|
|||
|
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 |
![]() |
|
|
| Tags |
| cron, cronjobs, crontab, linux cron, unix cron |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Postfix Not Sending Mail | manish_2479 | Mail Servers | 3 | 10th September 2009 01:38 PM |
| How to check "incorrect mails" before sending it through my mail server? | nishith | Mail Servers | 1 | 28th April 2009 01:41 AM |
| Sending mails using OUTLOOK through SQUID | prahladkumar | Mail Servers | 0 | 6th March 2009 10:26 AM |
| Linux delete mail for root or any other user from a shell prompt | raj | Getting started tutorials | 0 | 5th May 2007 01:36 AM |
| sending a message to all users bash | Shell scripting | 1 | 17th July 2006 02:16 AM | |