Re: How to stop a cron job sending email
- From: Karl Auer <kauer@xxxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 22:31:50 +1100
On Fri, 2008-10-31 at 16:34 +0530, Sambit Bikas Pal wrote:
If you want to complete disable mails from cron, add the following at
the top of the crontab-
MAILTO=""
In general, this is a Bad Idea.
Turning off all emailed output from cron is a good way to never find out
about stuff that is going wrong.
Scripts run from cron should handle any expected output themselves. That
will ensure that any unexpected output gets mailed to you.
Redirecting output from scripts to /dev/null in the crontab itself is a
Bad Idea for the same reason, but at least it can be applied on a
script-by-script basis. Also, you can choose to only redirect stdout, so
that unexpected output on stderr will still be mailed to you.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer@xxxxxxxxxxxxxx) +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/ +61-428-957160 (mob)
GPG fingerprint: DD23 0DF3 2260 3060 7FEC 5CA8 1AF6 D9E3 CFEE 6B28
Attachment:
signature.asc
Description: This is a digitally signed message part
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: How to stop a cron job sending email
- From: Sambit Bikas Pal
- Re: How to stop a cron job sending email
- References:
- How to stop a cron job sending email
- From: Johann Spies
- Re: How to stop a cron job sending email
- From: Sambit Bikas Pal
- How to stop a cron job sending email
- Prev by Date: Re: Why is HAL being made the default when it's not ready?
- Next by Date: Re: What to do to get a fix in 8.04?
- Previous by thread: Re: How to stop a cron job sending email
- Next by thread: Re: How to stop a cron job sending email
- Index(es):
Relevant Pages
|