[PLUG] Cron notification
Robby Russell
robby at planetargon.com
Tue May 20 20:18:02 UTC 2003
<?echo Roderick A. Anderson managed to take the time to type out the
following:
> On Tue, 20 May 2003, Michael Montagne wrote:
>
>> I just added a cron job that writes a file every half hour. Each time
>> it runs I get an email. How do I make that stop? I have another one
>> running that doesn't send an email.
>
> By default all output is mailed to root. If your process doesn't create
> output you may or may not get (depending on the quality of burnt offerings
> you've made or even the distribution/version of Linux you're running) an
> (semi-)empty message. To insure you don't get anything place > /dev/null
> after the command(s) you're running. You'll still get errors in the mail
> but if you've been a good scripter these will be minimal.
>
> EXAMPLE:
>
> chkspam.pl > /dev/null
>
to add to this... follow up with 2>&1
chkspam.pl > /dev/null 2>&1
More information about the PLUG
mailing list