Subject: Re: blocking some - not all - cron mails?
To: David Wetzel <dave@turbocat.de>
From: None <netbsd99@sudog.com>
List: netbsd-help
Date: 02/17/2003 09:50:14
On Sunday 16 February 2003 14:08, David Wetzel wrote:
> hi folks,
> 
> how can I prevent cron from mailing me mail from only some crontab entries?
> 
> something like
> 
> 10      */2     *       *       *       /usr/local/apache/webalyser/start.sh 
2>&1 >/dev/null

Change MAILTO="" in sections where you don't want email, and then to a 
username when you do.

MAILTO=""
[crontabs you don't want to hear about]
MAILTO="root"
[crontabs you do want to hear about]

Piece of cake.