popen() is executed many times in MODE_SET_ACTION:

goon863 <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <2052277989.1133091192520493132.JavaMail.coremail@bj163app104.163.com>
hi all,
 I use popen("ping -c 3 192.168.0.1","r") under the code "case MODE_SET_ACTION: ".While run snmpset,the code under"case MODE_SET_ACTION: " will be run 6 times.the same as ftp:  fp=popen("ftp -nv","w"); my code is as follow:
    case MODE_SET_ACTION:
        /*
         * XXX: perform the value change here
         */
    popen("ping -c 3 192.168.1.1","r") ;
    MYDEBUG( printf("run here (%s  %d\n) ... ", __FILE__,__LINE__));
    break;
Could you tell me why? Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.