From owner-svn-src-head@freebsd.org Wed Sep 25 06:58:01 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97BBAFC985; Wed, 25 Sep 2019 06:58:01 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46dTQx3TrDz4TbD; Wed, 25 Sep 2019 06:58:01 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from ivaldir.etoilebsd.net (etoilebsd.net [178.32.217.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4427273F8; Wed, 25 Sep 2019 06:58:01 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by ivaldir.etoilebsd.net (Postfix, from userid 1001) id 40C60BA788; Wed, 25 Sep 2019 08:57:54 +0200 (CEST) Date: Wed, 25 Sep 2019 08:57:54 +0200 From: Baptiste Daroussin To: Kyle Evans 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> References: <201909250237.x8P2bf0X033449@repo.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aofd5rerjkkeva7v" Content-Disposition: inline In-Reply-To: <201909250237.x8P2bf0X033449@repo.freebsd.org> User-Agent: NeoMutt/20180716 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Sep 2019 06:58:01 -0000 --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 > 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--