Server Add-In Task: Delay

After doing C-API programming for a number of years, when Paul Mooney asked me to construct a server add-in task which would delay for a number of seconds, and then run a console command, I thought "No problems. 30 minutes". Well, it took perhaps 90 minutes, but here it is.

Ive compiled this on Windows 32-bit for Lotus Domino v6 and onwards. You can download this pre-compiled version from here. Alternatively, if you are very interested in how to build a server add-in task, the full source code is here. Note that I used MS Visual Studio 2005 and the Notes C-API Toolkit v6 in order to compile this. You'll need the source code if you want to port it to other platforms.

In order to use it:

  • Copy the server add-in task to the Lotus Domino programs directory
  • At the console, type in:
    Load Delay [seconds] [command-line]
    where:
    • [seconds] is the number of seconds that the server add in task should wait.
    • [Command-line] is the server console task you wish to pass to the server.
    • For example:
      load delay 10 show tasks
      will wait 10 seconds, and then run the server task 'show tasks'.

No warranties - explicit or otherwise - can be given for this control, so please understand and use at your own risk. Feel free to enhance and/or change it if required. As always, we'd love to hear how you use the Active Directory picker, and any suggestions, observations on it can always be mailed to our support mailbox.

This resource - as well as all others - was inspired by our development of our Product - FirM. Click here to learn more about how FirM can save significant cost and effort in running your domino environment.