Re: exec question

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20/09/06, danny zhong <[email protected]> wrote:
> 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

No - that won't work.
"exec" is designed to run a command to completion, and report the results.
If you've got a long-running program, then you can't use the
simplistic "exec" approach.

Take a step backwards - what exactly are you trying to do?

Dave

-------------------------------------------------------------------------
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.