Re: crontabs

From: Peter Rye <prye_at_picu-sgh.demon.co.uk>
Date: 1998/08/15
Message-ID: <m31zqim7xj.fsf_at_picu-sgh.demon.co.uk>#1/1


Vitaly Kroivets <Vitaly_Kroivets_at_chat.ru> writes:

> Chad Cunningham wrote:
>
> > I have a crontab set to run a perl script every 15 minutes. For some
> > reason, it feels the need to send me an e-mail telling me of the result
> > of my crontab. How can I persuede it not to do this?
>
> I think that if you will put MAILTO="" at beginnning of crontab , it
> will not email you ..

Or if you redirect stdout and stderr to /dev/null, you won't get the mail either. This may be useful if you want to have some crontab output mailed to you from other crontab entries.
eg:

*/15 * * * * myperlscript &> /dev/null Received on Sat Aug 15 1998 - 00:00:00 CEST

Original text of this message