Date: Thu, 27 Aug 2015 15:53:01 +0300 From: Alexander Moisseev <moiseev@mezonplus.ru> To: freebsd-questions@freebsd.org Subject: Re: how to change daily cron emails to go to user account instead of root Message-ID: <55DF082D.8040001@mezonplus.ru> In-Reply-To: <55DF057F.6040205@gmail.com> References: <55DF057F.6040205@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27.08.2015 15:41, Ernie Luzar wrote:
> The part that is not clear is where do I place this MAILTO environment variable?
Have you seen the EXAMPLE CRON FILE section of the man 5 crontab?
EXAMPLE CRON FILE
# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to `paul', no matter whose crontab this is
MAILTO=paul
#
# run five minutes after midnight, every day
5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55DF082D.8040001>
