hi everyone, i want to execute a script file in the remote computer by  
using the procfix. the script file in the remote computer  is like:

#!/bin/sh
exec -cl /home/kwangsa/infin

it will execute a "C" execution file called infin. the infin.c is :

#include<stdio.h>

int main(void){
system("./infin2 &");

}
which is calling a daemon program called infin2.
in my snmpd.conf, i have added these two lines :


proc /home/kwangsa/start_daemon 2 0
procfix /home/kwangsa/start_daemon /home/kwangsa/start_daemon

when i use the following command in my local computer:
snmpset  -v 2c -c vacms tcp:203.143.160.40 1.3.6.1.4.1.2021.2.1.102.1 i 1

nothing has happened, the daemon program was not triggered.  did i do 
something wrong??(i have try snmpwalk to get the remote computer's system 
info. everything is fine)

also i have done a little testing with the profix by replacing the 
start_daemon script file with:

#!/bin/sh
mozilla &

which is just start the mozilla with fork. when i use the snmpset command  
to set the prErrFix. the mozilla start immidately. however i have to wait 
for more than 10 sec to start another mozilla, no matter how many time i set 
the prErrfix. similar things happen to "xterm". can anyone know why??

_________________________________________________________________
Thousands of jobs, millions of opportunities. Begin here! 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=757263760&_r=Hotmail_End_Text_Jul06&_m=EXT


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to