exe question

"danny zhong" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
hi Dave, currently i am developing a simple remote control application with 
the net snmp. my question is how can i execute a remote program which is run 
in backround. for example,
i have a .c file in the remote computer which is:

int main(void){
while(1){

}
}

and i put the execution command of this file in  a script file called 
run.sh, in the snmpd.conf, i add

exec .1.3.6.1.4.1.2021.53 run /bin/sh /home/danny/run.sh

since the exec  need to get return result, when i run
snmpwalk -v 1 <ip> public .1.3.6.1.4.1.2021.53
it will return timeout
could you give me some hints about solving this problem.


regards

Danny Zhong

_________________________________________________________________
Research and compare new cars side by side at carpoint.com.au 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F833884&_t=54321&_r=hotmail_endtext&_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
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.