Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2020 15:39:49 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to silence cron?
Message-ID:  <20200911143949.GE91422@bastion.zyxst.net>
In-Reply-To: <20200911153307.690190ed@gumby.homeunix.com>
References:  <b0f49812-4d0a-e301-3ef2-816431ae3dbe@nethead.se> <41377ad1-4162-1194-7172-234c4d172e6d@mm.st> <20200911153307.690190ed@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--2hMgfIw2X+zgXrFs
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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@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
--=20
J.

--2hMgfIw2X+zgXrFs
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl9bjEgACgkQs8o7QhFz
NAWgHw/+PuBfLeXCEPynyOXkFVjGCRQJG3ZuZwuXlqVku+nXdK0miqQJEaDt6FdU
Su9YbvZ6CJSQb0MxiAlCy32sfhU1++E/U3mY7J3N2lmr8K88JIhPcBM3es0rmMvI
crLR+pyHeD77nvdX0TQQ3xs21rf5pQaKlmADo+MBCiR4rgqj+OJWdDHul37BGsOJ
Ny/i/B6q0Zkid8bCj1jxVkobtrIisDP0+4MUeosSXXNy8DtEuUCCSf+x8Z4plKQr
9Pq9EvosRNR8sfQbhm3GTDNIhcfqoMe9M/9NRzDSYATK95C4jcw+8mDdjdxrOCMn
Wm11Xy1E70oP/C7TK+qP6PJl4KLMbzK8L2zvYUlxtxCbjFRtUbrECB6P+yxxU/lJ
sIOBQg+4MmN57+4LblRvldcTxKIUXy6G2ZiIGOwIAdse5iKC3GHTRAUl6YVJwL3P
ydo4Yj64tQn6rc76H02chMODajF3xxnV5evrKdultv7osQy+oP8AScr/XVLAjwOR
LZgWxVXt7vqAYKSoZhP0AMJbeRxMlKCXMTPV342QqrdJBfVf8OHeJVKUj5yVPrB1
3iuxio+JIeD+HVJ37qDkFc7KI04EJ+1N8qf0kGWrtdhlCU+DGHXD+m67Swd2RUof
TdKZwRJGZQTjqMOftca6TTOJ7buReBOq8sxVmDluWmICLL91Cpk=
=Saao
-----END PGP SIGNATURE-----

--2hMgfIw2X+zgXrFs--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200911143949.GE91422>