exec question

"danny zhong" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>




hi everyone, 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 
something like a daemon process. 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 anyone give me some hints about solving this problem.

_________________________________________________________________
Search for local singles online @ Lavalife 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D23198&_t=751140432&_r=emailtaglines_search_aug06&_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.