From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 09:54:08 2003 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 BB63816A4CE for ; Wed, 26 Nov 2003 09:54:08 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BD1943FDD for ; Wed, 26 Nov 2003 09:54:08 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.200.37]) by comcast.net (rwcrmhc12) with ESMTP id <20031126175407014007bnofe>; Wed, 26 Nov 2003 17:54:07 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 4A79970; Wed, 26 Nov 2003 12:54:07 -0500 (EST) Sender: lowell@be-well.ilk.org To: stuart.gibson@bridgeman.co.uk References: <3FC4D7D4.11526.C30C22@localhost> From: Lowell Gilbert Date: 26 Nov 2003 12:54:07 -0500 In-Reply-To: <3FC4D7D4.11526.C30C22@localhost> Message-ID: <44ad6jnhhc.fsf@be-well.ilk.org> Lines: 7 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@FreeBSD.ORG Subject: Re: crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.ORG List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 17:54:08 -0000 stuart.gibson@bridgeman.co.uk writes: > Is there any way of instructing cron to only email me if the cron job > fails? Mail is only sent if there is output. Make sure there's no output if the job succeeds (perhaps by redirecting it) and you'll be all set.