[CentOS] To redirect any message into /dev/null
William L. Maltby
CentOS4Bill at triad.rr.com
Mon Sep 25 12:10:05 UTC 2006
On Sun, 2006-09-24 at 23:38 -0700, Email Lists wrote:
> -> <snip>
> 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
And more recent versions of bash permit &>/dev/null to redirect both
stdout and stderr. To append, still need the separate redirects though.
> Ymmv ;->
>
> - rh
>
> --
> Robert - Abba Communications
> Computer & Internet Services
> (509) 624-7159 - www.abbacomm.net
> <snip list stuff>
--
Bill
More information about the CentOS
mailing list