suppress known warning message

suppress known warning message

am 16.11.2007 05:31:00 von wong_powah

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

Re: suppress known warning message

am 16.11.2007 06:15:48 von Bill Marcum

On 2007-11-16, wong_powah@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'

Re: suppress known warning message

am 16.11.2007 07:50:17 von spcecdt

In article ,
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@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/