Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!uw-beaver!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!news.moneng.mei.com!hookup!news2.sprintlink.net!news.sprintlink.net!news.world.net!news.teleport.com!news.teleport.com!not-for-mail From: mbell@teleport.com (Max Bell) Newsgroups: comp.os.386bsd.questions Subject: Re: How do I stop crond from mailing? Date: 28 Apr 1994 12:56:36 -0700 Organization: Teleport - Portland's Public Access (503) 220-1016 Lines: 19 Message-ID: <2pp4dk$l8a@kelly.teleport.com> References: <2poeil$det@explorer.clark.net> <2poqtv$pbo@hermod.uio.no> NNTP-Posting-Host: kelly.teleport.com In article <2poqtv$pbo@hermod.uio.no>, Thomas Berge <Thomas.Berge@studorg.uio.no> wrote: >Eric S. Hvozda (ack@clark.net) wrote: >>Redirect the output. Don't forget about stderr too :-) > >How could I do that? Should I do it when starting the crond? [ . . .] Not crond's output, the output of the job invoked in the crontab file. IE: If you have "0 2 * * * /usr/adm/cleanup", change it to: "0 2 * * * /usr/adm/cleanup > /dev/null 2>&1". I am assuming that crond uses the Borne shell to execute crontab entries. If it uses something else, use that shell's redirection syntax instead (for csh it would be ">& /dev/null"). Max -- /\ /\/ Max Bell | I used to think I'd emmigrate to escape / \/ /\ mbell@teleport.com | the tyrants, but now I think I'll stay ~~~~~~~~~ | and make them leave instead.