Great! It seems cover all the requirement. I will give it a try.
The time sync up, data list initialization, alarm registration + callback 
function are all taken care in the init_ABCTable

Thanks again,
-Jim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dave Shield
Sent: Thursday, September 22, 2005 7:18 PM
To: Jim Su
Cc: Net-Snmp-Users
Subject: RE: add a forever process in agent

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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.5/110 - Release Date: 2005/9/22

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.5/110 - Release Date: 2005/9/22
 
HS^菟��X炬�'��煪��jg甜縥z鬙�����!jY^�玲+a����z�'�j���涕��'����郯哭煃拓m蝘虛煡�0�v詣�Z淬倌�礜膬z憎燻��+f=#��'$�縤��ek(m�����叛賥�囫葮z�'�j)��^傾璁�時��X��X炭蚼球征ク淅炮�(熒~�輈w�>W�梵z傂~�e�����z�.���捩滵�+r���-�膱肋��ч��?�X炮�(熒~�輈w哪X炮盷�犽��?�螔�jn梓

Reply via email to