From owner-freebsd-questions@FreeBSD.ORG Wed Aug 23 18:06:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7435916A4E0 for ; Wed, 23 Aug 2006 18:06:12 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id A657C43D49 for ; Wed, 23 Aug 2006 18:06:11 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Wed, 23 Aug 2006 14:06:10 -0400 id 00056412.44EC9912.00016A03 Received: from Internal Mail-Server (206.210.89.202) by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 23 Aug 2006 13:59:30 -0400 Date: Wed, 23 Aug 2006 14:06:10 -0400 From: Bill Moran To: David King Message-Id: <20060823140610.73771aae.wmoran@collaborativefusion.com> In-Reply-To: <32E582EE-9F5C-4426-8DAB-AB109E838C48@ketralnis.com> References: <012e01c6c6bd$29966ac0$d51a2cd0@lisac> <20060823102841.05d85d88.wmoran@collaborativefusion.com> <32E582EE-9F5C-4426-8DAB-AB109E838C48@ketralnis.com> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: e-mail from cron X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:06:12 -0000 In response to David King : > >> to this: > >> > >> # Perform daily/weekly/monthly maintenance. > >> 1 3 * * * root periodic daily > >> 2>&1 | sendmail service@jellico.com > > [...] > > However, you might find it easier to just add the following line to > > the > > top of the crontab: > > MAILTO=service@jellico.com > > Which will cause all mail generated by the jobs in that file to be > > sent > > to the provided address. > > Is that true? MAILTO should change the destination of the output of > cron jobs, but periodic handles its own output You're correct. That's my mistake and I apologize for the misinformation. Simply put, periodic does not generate any output to either stdout or stderr. It has its own system for determining who to mail to. See /etc/defaults/periodic.conf or appropriate man pages for the details. -- Bill Moran Collaborative Fusion Inc.