*BSD News Article 46193


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!news.sprintlink.net!news.cais.com!news!khera
From: khera@kciLink.com (Vivek Khera)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: /etc/crontab mails me every 15 minutes!
Date: 29 Jun 1995 23:27:14 GMT
Organization: Khera Communications, Inc., Rockville, MD
Lines: 19
Message-ID: <KHERA.95Jun29192714@kci.kciLink.com>
References: <3sug23$grn@news.computek.net>
NNTP-Posting-Host: kci.kcilink.com
To: sysadmin@ns1.koyote.com
In-reply-to: sysadmin@ns1.koyote.com's message of 29 Jun 1995 15:15:15 GMT

>>>>> "s" == sysadmin  <sysadmin@ns1.koyote.com> writes:

s> I have the following line in my /etc/crontab :
s> 0,15,30,45 * * * *      root /usr/sbin/pop.killer.sh | tee -a /var/log/popkill.out

s> my problem is that every 15 minutes this stupid thing emails me telling me output of pop.killer.sh

You asked it to.  If you don't want email, make sure your program
produces no output to stdout or stderr.  Change your pipe to tee to be
a simple redirect to append to the file:

  pop.killer.sh >> /var/log/popkill.out

should do it.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                        Khera Communications, Inc.
Internet: khera@kciLink.com               Rockville, MD       +1-301-309-0969
PGP/RIPEM/MIME spoken here                http://www.kciLink.com/home/khera/