Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2019 08:57:54 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Kyle Evans <kevans@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r352668 - in head/usr.sbin/cron: cron crontab lib
Message-ID:  <20190925065753.vmw4ls426xighbag@ivaldir.net>
In-Reply-To: <201909250237.x8P2bf0X033449@repo.freebsd.org>
References:  <201909250237.x8P2bf0X033449@repo.freebsd.org>

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

--aofd5rerjkkeva7v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 25, 2019 at 02:37:41AM +0000, Kyle Evans wrote:
> Author: kevans
> Date: Wed Sep 25 02:37:40 2019
> New Revision: 352668
> URL: https://svnweb.freebsd.org/changeset/base/352668
>=20
> Log:
>   cron: add log suppression and mail suppression for successful runs
>  =20
>   This commit adds two new extensions to crontab, ported from OpenBSD:
>   - -n: suppress mail on succesful run
>   - -q: suppress logging of command execution
>  =20
>   The -q option appears decades old, but -n is relatively new. The
>   original proposal by Job Snijder can be found here [1], and gives very
>   convincing reasons for inclusion in base.
>  =20
>   This patch is a nearly identical port of OpenBSD cron for -q and -n
>   features. It is written to follow existing conventions and style of the
>   existing codebase.
>  =20
>   Example usage:
>  =20
>   # should only send email, but won't show up in log
>   * * * * * -q date
>  =20
>   # should not send email
>   * * * * * -n date
>  =20
>   # should not send email or log
>   * * * * * -n -q date
>  =20
>   # should send email because of ping failure
>   * * * * * -n -q ping -c 1 5.5.5.5
>  =20
>   [1]: https://marc.info/?l=3Dopenbsd-tech&m=3D152874866117948&w=3D2
>  =20
>   PR:		237538
>   Submitted by:	Naveen Nathan <freebsd_t.lastninja.net>
>   Reviewed by:	bcr (manpages)
>   MFC after:	1 week
>   Differential Revision:	https://reviews.freebsd.org/D20046
>=20
I do think this deserves an entry in the release notes

Best regards,
Bapt

--aofd5rerjkkeva7v
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl2LD+oACgkQY4mL3PG3
PlqJ0RAAsqmpxsx9ytELqIRNgoiAjkB3CwHM1skUQ5HcCKxBxc3RIiiM4eheXA8X
Olj6wt0EFPx/tIlLGonfmgMomqqgulJBJoykn7SbFYVrebI9XoFu7uYbG+NVrAiT
qjP8I+OpA0LWgcFgDndGTxscAuntY4vNiLd+4tgy9luf5kcj5HOqKLhwlG+gQ2eF
ODKI0/BG/5zoVOk355PNJMxsPBw5SRGO9PAMwMbvXT7n1knUUSiwgu6sWToDhoCO
YGxgmQC6sle1kdijnVeaGysahu7vAd2b9crSIjaHBp4wMqeXHD45YhjzbUz/c7Me
LkKXAD/r1ZJ57/HGZHGSul0DhhxfxNLxFnmHZgOIjy5tNlUup3quLOM5uP/kVPPV
DT+a0k6vfzMker0Ph75X30zys1E9hCLiZy3WYYD3yNpBZqattRsp+mXvGvctZ/8A
vbOoZgXVaxMXFj0gsjwp0CGRDqrJtjctzTPq+F2VmaEgkfj9U/5ONv7lh8wQXcSD
l/HgV+9iw+FrwNI4hHVSI8cEUEMLvRFRMtWs0QTaYVrOKPt/wftX7OAbfB/py5VD
wVvXHP56FKxVVQzjL7r6+Oaefq3xXmGzCTUBTRcA3aizi8BrVzxbR3qYZapO7HTR
9k1tzewpSftQZOOCyHjrUmwHWawZP324NEG3Ul2g1TWccYQvlVo=
=QugW
-----END PGP SIGNATURE-----

--aofd5rerjkkeva7v--



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