i'm here just picking nits, but you'd want to say:

> /dev/null 2>&1 

else you'd just redirect stdout.

cheers
--e--



On Thu, Jun 01, 2000 at 09:02:29AM +0100, Dave West wrote:
> On Thu, 1 Jun 2000, Antony Stace wrote:
> 
> > Hi Folks
> > 
> > Can I selectively decide which cron jobs are to send me a notification
> > message.  The only option I can see is to set the MAILTO variable.  If
> > it is set then the user under which the cron job was run is sent a mail,
> > otherwise no mail is sent.  I want to get mail sent for some cron jobs
> > but not others.  Is there any way to do this?
> > 
> > Any help appreciated.
> > 
> 
> This is not true. The MAILTO variable controls where any mail generated
> will be sent. Cron jobs only generate mail if they attempt to print to
> stdout or stderr. To prevent a cron job from generating mail then simply
> redirect the output streams to /dev/null (eg. > /dev/null).
> 
> Dave West                     E-Mail: [EMAIL PROTECTED]
> Semiras Projects Ltd.       PGP public key available on request.
> 

Reply via email to