From owner-freebsd-questions@freebsd.org Thu Aug 27 13:02:42 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62C7E9C42A3 for ; Thu, 27 Aug 2015 13:02:42 +0000 (UTC) (envelope-from moiseev@mezonplus.ru) Received: from mx.mezonplus.ru (mx.mezonplus.ru [91.211.181.139]) (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 1CB5C6DB for ; Thu, 27 Aug 2015 13:02:41 +0000 (UTC) (envelope-from moiseev@mezonplus.ru) Received: from [192.168.0.102] (nb-latitude.users.mezon.local [192.168.0.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.mezonplus.ru (Postfix) with ESMTPSA id 4852F39827 for ; Thu, 27 Aug 2015 15:53:01 +0300 (MSK) Subject: Re: how to change daily cron emails to go to user account instead of root To: freebsd-questions@freebsd.org References: <55DF057F.6040205@gmail.com> From: Alexander Moisseev Message-ID: <55DF082D.8040001@mezonplus.ru> Date: Thu, 27 Aug 2015 15:53:01 +0300 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:43.0) Gecko/20100101 Thunderbird/43.0a1 MIME-Version: 1.0 In-Reply-To: <55DF057F.6040205@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2015 13:02:42 -0000 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