From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 23:30:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91774106566B for ; Fri, 4 Apr 2008 23:30:40 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id 580118FC1D for ; Fri, 4 Apr 2008 23:30:40 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: by duane.dbq.yournetplus.com (Postfix, from userid 1001) id 855D527E448; Fri, 4 Apr 2008 23:30:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id 83E6A27E43B for ; Fri, 4 Apr 2008 23:30:39 +0000 (UTC) Date: Fri, 4 Apr 2008 23:30:39 +0000 (UTC) From: D Hill X-X-Sender: d.hill@duane.dbq.yournetplus.com To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: cronjob - email messages sent 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: Fri, 04 Apr 2008 23:30:40 -0000 I have several cronjob's set up on a server we have under the user root. I need to specify specific email addresses results are sent to. Using documentation from: man 5 crontab I thought I could surround the jobs: ... MAILTO="root,someoneelse" @hourly /usr/local/bin/mysqladmin -u internalonly status 30 8 * * * /usr/local/bin/mysql -u internalonly < /root/mysql.optimize */15 * * * * mysql -u internalonly < /root/delete_rad_usersonline 0 */4 * * * mysql -u internalonly < /root/delete_rad_authlog_failed MAILTO="root" ... It works for @hourly, but not for the other three. -d