Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 2003 07:30:23 -0600
From:      Al Arzaga <freebsd@arzaga.net>
To:        freebsd-newbies@freebsd.org
Subject:   Re: cron MAILTO
Message-ID:  <20031105133023.GA27189@arzaga.net>
In-Reply-To: <3FA8EFBE.19204.45F3592@localhost>
References:  <3FA8EFBE.19204.45F3592@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

http://www.opengroup.org/onlinepubs/007908799/xcu/crontab.html

"If standard output and standard error are not redirected by commands 
executed from the crontab entry, any generated output or errors will 
be mailed, via an implementation-dependent method, to the user."

So, you can do:
		command > logfile
for each crontab entry.


On Wed, Nov 05, 2003 at 12:40:30PM -0000, stuart.gibson@bridgeman.co.uk wrote:
> Hi,
> 
> Is there a way of getting cron to only email me if my cron jobs fail.  At
> the minute I use the MAILTO option with my email address and it
> emails me everytime it runs one.  I cant find anything in the man pages
> about this.
> 
> thanks in advance
> 
> Stuart Gibson
> 
> 
> Stuart Gibson
> IT Assistant Manager
> The Bridgeman Art Library
> 17-19 Garway Road London W2 4PH, UK
> T  +44 (0)20 7908 1619
> F  +44 (0)20 7792 8509
> www.bridgeman.co.uk
> 
> 
> The Bridgeman Art Library is the world's leading source of fine art
> images.
> 
> 
> Our website has now been completely redesigned to make finding the
> perfect image easier than ever. New features include: thousands more
> images, an easy-to-use design, ?Lightbox? facilities for improved
> searching, ?My Bridgeman section for managing your images, inspiring
> selections by Bridgeman Picture Researchers, a full listing of all our
> museums, artists and collections and comprehensive online help. Try
> out the new site now at www.bridgeman.co.uk
> 
> International Offices:
> 
> The Bridgeman Art Library International, USA
> T +1 212 828 1238
> newyork@bridgemanart.com
> 
> The Bridgeman Giraudon, France
> T +33 (0)1 55 80 79 10
> paris@bridgeman.fr
> 
> 
> This email is confidential and should not be used by anyone who is not
> the original intended recipient. The Bridgeman Art Library cannot
> accept liability for statements made which are clearly the sender's own
> and not made on behalf of the Bridgeman Art Library.
> 
> 
> _______________________________________________
> freebsd-newbies@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-newbies
> To unsubscribe, send any mail to "freebsd-newbies-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031105133023.GA27189>