On Fri, 6 Aug 2004 16:51:44 +0530 Nagaich, wrote:
NN> Hi All,
NN>    is there any way of disabling logging completely for a sub-agent. I am
NN> unsing net-snmp 5.1.1
NN> 
NN>   I disabled stderr explicitly but subagent automatically enables stderr
NN>   and
NN> prints debug messages on console.

At startup, close file descriptors 0, 1 and 2, and then immediately open
/dev/null, and call dup twice. The agent will then be logging to /dev/null.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to