home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12615 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.2 KB  |  30 lines

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