in reply to Perl and SNMP

Assuming that the IPC between your users query and the sub-agent uses either a filehandle or socket, then How do I print to more than one file at once? might be of some use.

You could use this trick so that if the sub-agent already has a handle open (i.e. it is currently in the process of getting the required data) it could just tack on to the handle the other users query. That way the sub-agent could satify both requests with just one lookup.

Of course I'm making assumptions about how the IPC works and so this advice could be totally useless. :)

!unlike

"The price if ignorance, which is of course that you must learn from those who know." Scorates (paraphrased)

Replies are listed 'Best First'.
Re: Re: Perl and SNMP
by castaway (Parson) on Jan 24, 2003 at 12:33 UTC
    Hmm, 'fraid not, I think. The problem is that the subagent doesn't call the script for the users request, if its waiting for an answer from a previous call. It uses popen() to open a pipe to the script and then waits for it to return. (Not sure if/how I can change this yet..)

    C.