[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Mail from crontab



On Wed, 24 Oct 2001 13:09:27 -0400 "Rob Yale" <rob mcclear com> imparted
to us:
> Can someone please tell me how to keep crontab from sending mail every
> time
> it does something?
> Here's the message that keeps getting sent:

Change the line

MAILTO=root


to read 

MAILTO=""

If you want to only for some cron entries and not all (i.e. you might
want to know when certain ones fail or work), add the following to the
end of each line you want mail to stop sending:

> /dev/null 2>&1

Be sure to put a space just before the first > in the line.

> Hi. This is the qmail-send program at hermes.mcclear.com.
> I'm afraid I wasn't able to deliver your message to the following
> addresses.
> This is a permanent error; I've given up. Sorry it didn't work out.
> 
> <root hermes mcclear com>:
> This message is looping: it already has my Delivered-To line. (#5.4.6)
> 
> --- Below this line is a copy of the message.
> 
> Return-Path: <anonymous hermes mcclear com>
> Received: (qmail 17085 invoked by alias); 24 Oct 2001 16:30:04 -0000
> Delivered-To: root hermes mcclear com
> Received: (qmail 17083 invoked by uid 0); 24 Oct 2001 16:30:04 -0000
> Date: 24 Oct 2001 16:30:04 -0000
> Message-ID: <20011024163004 17082 qmail hermes mcclear com>
> From: root hermes mcclear com (Cron Daemon)
> To: root hermes mcclear com
> Subject: Cron <root hermes> /usr/sbin/ntpdate -u tick.utoronto.ca
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=root>
> 
> 24 Oct 12:30:04 ntpdate[17081]: step time server 128.100.103.252
> offset
> 3.738529 sec

-- 
Give a man a fish and you feed him for a day;
teach him to use the Net and he won't bother you for weeks.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]