Date: Thu, 27 Aug 2015 13:53:23 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: how to change daily cron emails to go to user account instead of root Message-ID: <55DF0843.2010000@infracaninophile.co.uk> In-Reply-To: <55DF057F.6040205@gmail.com> References: <55DF057F.6040205@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015/08/27 13:41, Ernie Luzar wrote: > How do I change the daily cron emails to go to user account instead of > root? I don't want any cron email going to root any more. >=20 > man 5 crontab says the cron environment variable MAILTO =3D "account us= er > name" is way to change the cron email from the default of "root" to the= > "account user name" you want. >=20 > The part that is not clear is where do I place this MAILTO environment > variable? Do I edit /etc/crontab and pace it next to the PATH variable > or maybe in /etc/periodic.conf or /etc/csh.cshrc or /boot/loader.conf? Add: daily_output=3D"email@addr.ess" to /etc/periodic.conf Or you can give it a file name and it will write the output there -- /var/log/daily.log is recommended as it's already set up to be rotated by newsyslog(8) Matthew --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJV3whDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnJzkP/07cL/0ib2gd5+/AF8y3JCtX YQNjvAzrJR80JT/WDaqZahYCIBdlDtq0MdOzqw9b5YvYbVtatru0bluJ+b5hj8Su FACrQoEqdk82PzdIfD+c5T0Y3MX/x0ayj2F3VKpx5B353+vEpNrB5IMA2xddEHEN 6ofR8rEHuoEC3rh4buZPtGErUydrXQmPWYAafodo/B8s7o9b3WXbDoVK3vp6wTbH qlIVQ8883sPy66s3MtME2IW9lbIfGT0QsOp0H825p+RuXpAMg4oCi04K5qV6A3c5 YLuyHI4IQdnP7xyfNpfShmwl8uvQoZGKMiVS8N5/7JJV8jiWZFiCOru+tClEEsIL ThlOOBJUcrpKsaLZtLZDXpGSG7AlupRuATSrh+HHKjD+HsD6OLv2B3cKP4l9fr+/ dv6pL5EtCQlUBO8rV4VBhzRK11JE7CiS9OwCjImjXX6vOqXuqH8OUgaYMUFCQNof udvSRdTwQC63u/X0OUNJ6c0Hq8xLKRIwUAkOBr7COr3qtJTqlffdwL1NNItRJIGt Hq4/4zHGpd0fTsvQoNPw4l2/dDCFTHD1yqLMx+rJuGcvKm5gi6sYbpZnf/br6/SP lrBODx/xQ+vQ0HlxRaQodbotwGJ8piPrLSI8SV2ZQtAqkMLtbWVBYIl/WXi6/XSs HkZ3Reno6dPxJVKkT4Iq =oJII -----END PGP SIGNATURE----- --jNXwKgLNqrIBjTXuvqKMjxMiCpU5OBOaR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55DF0843.2010000>