RE: add a forever process in agent

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Thu, 2005-09-22 at 18:36 +0800, Jim Su wrote:
>  I want the process to be executed exactly on the
>  0, 5, 10, 15 .. 55 minutes on the hour.

Hmmm...

OK - try the following:

In the 'init_ABCTable' routine, calculate how long
until the next 5-minute mark, and register a one-off
alarm to fire then.   That will trigger an alarm
callback routine 'init_ABCData' which should:

  a) initialise the list data, and
  b) register a repeating alarm to call a
     different callback routine ('load_ABCData')

This second routine should then be invoked on
the 5-minute marks, as required.

OK?

Dave


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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.