Den 25-06-2013 18:03, Juan Bússoli skrev: > Could you help me to realize where the error is, and because it writes > the value to the text file?
Are you sure you are running the modified agent? Try adding some debug output to verify that you actually get into the case you expect. You will probably run out of file descriptors as you only close the file on a MODE_SET_ACTION. Why don't you just fprintf(filep, "%ld\n", example1); in stead of complication if with sprintf (which really should be snprintf) and fputs? You should probably open the file with mode "r+" if you want to be able to read a value from it. /Niels -- Niels Baggesen -- @home -- Århus -- Denmark -- [email protected] The purpose of computing is insight, not numbers -- R W Hamming ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
