*BSD News Article 78273


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!news.stealth.net!newsfeed.uk.ibm.net!arclight.uoregon.edu!dispatch.news.demon.net!demon!news.xciv.org!usenet
From: paul@xciv.org (Paul Civati)
Newsgroups: comp.unix.bsd.386bsd.misc
Subject: Re: cron and mail
Date: 13 Sep 1996 23:11:32 GMT
Organization: XCIV
Lines: 17
Message-ID: <51cpn4$1um@xciv.demon.co.uk>
References: <01bba034$6163e1e0$05b3ffcc@ppp-.knighted.com>
Reply-To: paul@xciv.org
NNTP-Posting-Host: pantera.xciv.org
X-NNTP-Posting-Host: xciv.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <01bba034$6163e1e0$05b3ffcc@ppp-.knighted.com>,
	"George H. Gates" <ggates@knighted.com> writes:

> Does anyone know a way to make cron stop mailing a person when it does a
> job?  I have a cronjob that runs every 5 minutes to see if a dialout ppp
> connection is still live, and it mails me with the results.  12 messages an
> hour fills up my mailbax and is a real pain.

Redirect the output to /dev/null, something like the following:

10,25,40,55 * * * *     /usr/local/bin/some-cronjob >/dev/null 2>&1

-Paul-

-- 
Paul Civati  =O=  Home: paul@xciv.org          =O=  http://www.xciv.org/
London UK    =O=  Home: paul@xciv.demon.co.uk  =O=  Slackware is.