From owner-freebsd-questions@freebsd.org Fri Sep 11 18:44:49 2020 Return-Path: Delivered-To: freebsd-questions@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 4AF0A3E265C for ; Fri, 11 Sep 2020 18:44:49 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bp4Rz4RdNz3SDx for ; Fri, 11 Sep 2020 18:44:47 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B0C525C0083 for ; Fri, 11 Sep 2020 14:44:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 11 Sep 2020 14:44:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=BsZ8YASKPo1mozTKh5xyUcqPPzP YYTBg/pA/+oDWvAk=; b=c9KuirWzCpUepC2bXmBa3N+TKjJQALPmg2I/F3BdUV4 KFF83Ir8xdTNi6mo4mKI/jVOGfd5y8LZ0PplbUDVtJgdd5CrDZtPO5zUSlKry2kG gIbz4ZxckqR46BbAnDRQAJrzf0+6whWp3nbB86ioFi75BdtTmLxawFj5o+bO301s l6y6UDDfoZcrSAK4tJWBEABz7f0juIph60g5HECjTGri4HB7of4yNBvriStoePr7 4EnqB+tlU1MzpX4pUHt2gYy0YnYsX7Im56RH4OPG4VNzfyGeDG7NdhJxke7lEL1H IK4HH4GF7WG9OeYtxnTq13cd5bjgwaTdF9ymivEnI6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=BsZ8YA SKPo1mozTKh5xyUcqPPzPYYTBg/pA/+oDWvAk=; b=p4FxxDWMWplh12J7f5CI+i +d1diHoaF5LHtpnVT/tUFs/hlspoL0IpTzhVzH/tNwBghedEBi30CLLM1h7eMNjH 9ora9KT98li4HbTUIg6kwVtZ9hDn3ejTBHm1JHnnoNdMpm6SSaaklckqgSrU7ShO 7Zp/4I19sxwudBuB4WxthFOitFI6SeSj3024Wlt2WJQFqhd2pquzPTkbJukveipv XoWrDy3S9KyPQjHLRnHKKkF8Oo/wyam3qm9gtNBxBdxlyYPryDFDqv8WWIeUbwla s9tOirkYUFa6EpgT1TgQZmRbvVBwRY/punFc6QHd8jrGWPfssVREbxa1zWYtketg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledgudefudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshes iiihgihsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdehiefgvddufeekkedvtdefvd ettddtkeduvdegveelffdtkeffudejvdfhudetnecukfhppeekvddrjedtrdeluddrleel necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthgvtg hhqdhlihhsthhsseiihiigshhtrdhnvght X-ME-Proxy: Received: from bastion.zyxst.net (bastion.zyxst.net [82.70.91.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 12EF9328005A for ; Fri, 11 Sep 2020 14:44:45 -0400 (EDT) Date: Fri, 11 Sep 2020 19:44:17 +0100 From: tech-lists To: freebsd-questions@freebsd.org Subject: Re: How to silence cron? Message-ID: <20200911184417.GF91422@bastion.zyxst.net> Mail-Followup-To: freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="aZoGpuMECXJckB41" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Bp4Rz4RdNz3SDx X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm3 header.b=c9KuirWz; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=p4FxxDWM; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.29 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-4.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm3,messagingengine.com:s=fm3]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.29:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.987]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zyxst.net]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-0.69)[-0.694]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.29:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 18:44:49 -0000 --aZoGpuMECXJckB41 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 11, 2020 at 03:11:22PM +0200, Per olof Ljungmark wrote: >Hi, > >What would be the proper way to silence output from a php script running >under cron? I have tried variations of /dev/null and 2>&1 but getting >nowhere. If this crontab is only for www then, as root, you can crontab -u www -e wh= ich works from a 12.1-p9 machine. I *think* you can set MAILTO: to /dev/null but I'm not 100% sure. But if you can, I think it'll do what you want, if that is to have no mail at all for = www user. --=20 J. --aZoGpuMECXJckB41 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl9bxZIACgkQs8o7QhFz NAUWdA//S+d2Hh+ABBuVnjfOGjI7Vx1nzH8wG29MFIwnoKd6Yccm9s8DOqGLK88u 0JIlGtMMU2gH+jsI1hFVp5ZJI4g0BAKFtaNM+LQPZBbD8v1DljqLVWh3FpiUe5H1 L6In2kgxTG4BiKLq+ByEKkyEJtalJnlV47FR1ZuWY0lrszZvHa+8iK45iO64DfY1 JdyD7Y/fqfkMEUAeIQZL5QctxOrGz8xnlpZ2RMUyVYVai/Dq0lWrfbwCni1JC7mG 0ekX8fRy0i5D+t0FkQCn6KO7AMg2BLy0abckpSh6htvNq6/+WHO6BsAJvAQpMOuh MLgUn8tNdu/MlGjlKk/5TkW9C8F9lf1jXvprKAkU3D+ok24Hxvk5C6k7yJi+NqdE +1s6PSFyeldDduVA+DY2q+ytX9unkKjAL9EzrgvPRsY56M0UNreG048HCcRqGW8Z CAYNDOiL7hMMBKCeTqfOk4HHS8Qvhs84hpmGrz2QEs5WACQ0AeGEIsgZ8PlxcUOR W+QK1ixDFwyQDZQNFQw0mFK81ieOb4qcxrJoMIZMv2GHTe/PlFAXICxn+ZvTpDKX zYUravjziSG+2WD2GHKbo4f6SzCqcDaT0RTFhlBEWwiFC3U9TLTO3gPbOz6mdb4C m34uzAHxQSRTQ4awUW1OuK0txV1GM1kofBEn+xZfILlwf+pFuRY= =ie37 -----END PGP SIGNATURE----- --aZoGpuMECXJckB41--