int temp()
{
FILE *pipe = NULL;
pipe=popen("/home/jatin/net-snmp-5.7.2.rc1/agent/mibgroup/cpu.sh","r");
if(!pipe)
{
snmp_log(LOG_ERR, "popen failed in temp(), errno: %d\n", errno);
return -1;
}
Thank you Sir,
But the issue is with popen(); call... when I am using SNMPWALK
command to get value it is working perfectly and returning me correct
value... but only 10-15 time... then after popen fails !!!!! Why it can't
execute cpu.sh continusly?? I want to make it work continuously till my
server start to stop !!
But I cannot make it correct !! help me with that.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders