Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2020 19:44:17 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: How to silence cron?
Message-ID:  <20200911184417.GF91422@bastion.zyxst.net>
In-Reply-To: <b0f49812-4d0a-e301-3ef2-816431ae3dbe@nethead.se>
References:  <b0f49812-4d0a-e301-3ef2-816431ae3dbe@nethead.se>

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

--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--



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