Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jul 2002 02:44:46 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cron: mailing owner: how to stopit!
Message-ID:  <20020720014445.GB51089@catflap.home.slightlystrange.org>
In-Reply-To: <B95E0C32.32ED%ukla@attbi.com>
References:  <B95E0C32.32ED%ukla@attbi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 19, 2002 at 06:34:26PM -0700, Steve Warwick wrote:
> Hi all, 
> 
> I have several scripts that run very frequently and email the owner every
> time the script is run.
> 
> I have gone through all the setup / config files but cannot figure out how
> to stop this from happening. Anyone have a list of locations I should look
> for this configuration / option?

AFAIK, any command run by cron that generates any output, will cause
an e-mail to be sent to the owner of the job.  To stop it, you need to make
sure that the scripts called by cron don't generate any output.  This can 
be done by redirecting the script's stdout to /dev/null.  It's probably not 
a good idea to redirect stderr to /dev/null as well, though, as the owner
will never receive notification if the job fails or throws up any 
warnings.

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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