How to silence cron?

tech-lists tech-lists at zyxst.net
Fri Sep 11 14:40:22 UTC 2020


On Fri, Sep 11, 2020 at 03:32:40PM +0100, RW via freebsd-questions wrote:
>On Fri, 11 Sep 2020 16:22:22 +0300
>xtouqh at mm.st wrote:
>
>
>> crontab(5) describes -n, which will silence only the successful runs,
>> i.e:
>>
>> */5 * * * * -n su -m www -c "...."
>
>
>Where does it say that in crontab(5)?

man 5 crontab[1], a couple of pages down:

[...]

     The following command options can be supplied:

      -n      No mail is sent after a successful run.  The execution output
              will only be mailed if the command exits with a non-zero exit
              code.  The -n option is an attempt to cure potentially copious
              volumes of mail coming from cron(8).

      -q      Execution will not be logged.

[...]

[1] FreeBSD 13.0-CURRENT #0 r365391M: Tue Sep  8 23:06:14 BST 2020
-- 
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200911/8d6fcf22/attachment.sig>


More information about the freebsd-questions mailing list