suppress known warning message
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
In article <fe5bd444-6762-4313-9874-74095a32e809 [at] a39g2000pre.googlegroups.com>,
<wong_powah [at] 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 [at] armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Re: suppress known warning message
On 2007-11-16, wong_powah [at] yahoo.ca <wong_powah [at] 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'