From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 09:38:07 2004 Return-Path: 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 B957316A4CE for ; Thu, 4 Mar 2004 09:38:07 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85AA243D46 for ; Thu, 4 Mar 2004 09:38:06 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i24Hc1b9000119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Mar 2004 17:38:01 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i24Hc1RS000118; Thu, 4 Mar 2004 17:38:01 GMT (envelope-from matthew) Date: Thu, 4 Mar 2004 17:38:01 +0000 From: Matthew Seaman To: Brian Henning Message-ID: <20040304173801.GA99258@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Brian Henning , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040304, clamav-milter version 0.67j cc: freebsd-questions@freebsd.org Subject: Re: crontab email X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 17:38:07 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 04, 2004 at 10:56:55AM -0600, Brian Henning wrote: > Everytime something runs from the the crontab for a given user such as ro= ot, I > get an email with the results of the execution. I am running a few cronta= bs that > run every 2 minutes and this gets to be a lot of excess email. How can I = turn > off this feature. Either set the MAILTO variable at the top of the crontab file to an empty string, or redirect stdout and stderr from each of the commands to /dev/null -- something like: 5 * * * * yourcommandhere >/dev/null 2>&1 See crontab(5) for details of MAILTO and sh(1) for how to redirect the file descriptors. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAR2l5dtESqEQa7a0RAoXZAJ9Sj999s174bOyyjCHaU0eNWREC8QCcDf6D bbXIcrdEr+gz7sq1dQVoo3I= =HdM4 -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--