[CentOS] To redirect any message into /dev/null

Email Lists lists06 at abbacomm.net
Mon Sep 25 06:38:26 UTC 2006


-> 
-> Hi all,
-> I'm running a script in my crontab like this:
-> */50 * * * * /root/scripts/keepjobrun 2>&1 > /dev/null
-> 
-> However, crontab always sends a message to root (me) about the above
-> script.
-> How do I stop it from sending any notification?
-> Thank you very much,
-> --
-> Fajar Priyanto 

Oh I forgot, I do it this way too, you may need a second chicken for this
one though.

0,15,30,45 * * * * /usr/local/sbin/somescript 1>/dev/null 2>/dev/null

Ymmv  ;->

 - rh

--
Robert - Abba Communications
   Computer & Internet Services
 (509) 624-7159 - www.abbacomm.net




More information about the CentOS mailing list