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

Re: How do I limit cron reports?



-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 30 Aug 1999, Christian Dysthe wrote:

> I have a couple of cron jobs running that I have added myself. The
> problem is that I get mails from cron with the subject:
> 
> Cron <root@myhost.com> run-parts --report /etc/cron.daily
> 
> In the mail it may say:
> 
> /etc/cron.daily/linbot_autorun:
> 
> And below comes all that the program linbot has been doing, in this case
> cheking all links on our web site which is alot.

The way Debian is set up, anything your cronjob writes to stdout or stderr
will be emailed to you, on the assumption that this output is something
important that you should see. To fix it, you can either adjust the
cron job not to output anything unless it had some sort of error or needs
to report to you, or you can just edit the crontab to redirect output to
/dev/null. For example,
  */5 * * * * foobar > /dev/null 2>&1


- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8t6Lb7M/9WKZLW5AQH9NQP5AU4eq09E6a/WvHRmeVTfV1a+1ffO9Dj/
zJXAU/txDGBS8+VEmg4AdSptvyrKAO48zjPb0orkA5LjQryFNYMSf+oyKRtak89g
Tt3zWxIGPO1kCnVg6sP0w7ItAAId/Yuezyn2FP08/IOr8+htDoWrjwIdjT6ZN9Ui
Q80q/0/EnJs=
=HFsg
-----END PGP SIGNATURE-----


Reply to: