From: wong_powah on
When snmpd is started on FC6, a warning will appear.
How to suppress only this known warning message? i.e. other warning
message will still appear.
# /sbin/service snmpd start > /dev/null
WARNING: initlog is deprecated and will be removed in a future release

If I do this, I am afraid all other warning messages (if any in the
future) will be suppressed:
#/sbin/service snmpd start >& /dev/null
From: John DuBois on
In article <fe5bd444-6762-4313-9874-74095a32e809(a)a39g2000pre.googlegroups.com>,
<wong_powah(a)yahoo.ca> wrote:
>When snmpd is started on FC6, a warning will appear.
>How to suppress only this known warning message? i.e. other warning
>message will still appear.
># /sbin/service snmpd start > /dev/null
>WARNING: initlog is deprecated and will be removed in a future release
>
>If I do this, I am afraid all other warning messages (if any in the
>future) will be suppressed:
>#/sbin/service snmpd start >& /dev/null

/sbin/service snmpd start 2>&1 >/dev/null |
grep -v "WARNING: initlog is deprecated and will be removed in a future release" >&2

John
--
John DuBois spcecdt(a)armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
From: Bill Marcum on
On 2007-11-16, wong_powah(a)yahoo.ca <wong_powah(a)yahoo.ca> wrote:
> When snmpd is started on FC6, a warning will appear.
> How to suppress only this known warning message? i.e. other warning
> message will still appear.
> # /sbin/service snmpd start > /dev/null
> WARNING: initlog is deprecated and will be removed in a future release
>
> If I do this, I am afraid all other warning messages (if any in the
> future) will be suppressed:
> #/sbin/service snmpd start >& /dev/null

/sbin/service snmpd start 2>&1 | grep -v 'initlog is deprecated'