home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!kum.kaist.ac.kr!usenet
- From: milburn@vision.postech.ac.kr (John Milburn)
- Subject: Re: Mail from cron jobs
- Message-ID: <1992Nov6.032252.23181@kum.kaist.ac.kr>
- Sender: usenet@kum.kaist.ac.kr (news)
- Reply-To: milburn@vision.postech.ac.kr (John Milburn)
- Organization: POSTECH, Pohang, Korea
- References: <1992Nov5.152048.429@hp9000.csc.cuhk.hk>
- Date: Fri, 6 Nov 92 03:22:52 GMT
- Lines: 17
-
- In article <1992Nov5.152048.429@hp9000.csc.cuhk.hk> a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
- >
- >Could anyone please tell me how to stop the cron jobs from sending mail
- >note to the user who schedules cron jobs ? I've cron jobs run every 5
- >minutes, and there're many job log mailed to my account.
-
- In the crontab file, add a re-direct for stdout and stderr. If you want
- to throw all messages away forever, after the command add ">/dev/null 2>&1".
- If you wish to log the messages to a file, substitute for /dev/null.
-
- e.g. 0,15,30,45 * * * * $HOME/.bin/do_something >/dev/null 2>&1
-
- -jem
- John Milburn - Pohang Accelerator Laboratory
- Pohang Institute of Science and Technology (POSTECH)
- Pohang, Korea Fax: 011-82-562-79-4499
- milburn@vision.postech.ac.kr
-