On Thu, Sep 06, 2012 at 10:30:47AM +0530, Jatin Bodarya wrote:
>                I want to add some system information with my enterprise OID.
> Can anyone help me ? how can I do this? My mib2c generated code is not
> allowing me to call the "system" function to run another program from it or
> " fscanf" function to read from the file ..

The compiler issues a warnning because you do not check the returnr
value from the call to system. It does do the call. Maybe you should
check the return values from system, fopen, fscanf!

It might also help to specify to full path of the script that you call
You cannot be sure what the PATH is

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - [email protected]
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
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

Reply via email to