Is it possible to create a event handler whereby it will run certain command on the Domino consol? Eg. if pending mail exceed 50, I wanna restart the router/ smtp services on the Domino.
Under the Run Program, I’m not sure how to call out the domino consol to execute the command.
Pls advise and thanks.
Subject: RE: Event Handlers
NotesSession.SendConsoleCommand(serverName$, consoleCommand$)
Subject: RE: Event Handlers
Just like David I’m not aware of a build in event that you could use to force the execution of a program document.
The suggested solution would be to run a scheduled agent in some database, that would check for the condition you want to catch and then have this agent issue the console command.
For the example you gave, you would probably need to check the number of documents in the Mail view in your mail.box (things gt more complicated, if you run multiple mail.boxes) and have the agent fire the console command, whenever it contains more than 50 documents.
Don’t misunderstand this as a recommendation to do so. I have no idea, if this really is a smart thing to do or if so, what schedule would be appropriate for such an agent. It’s just one way to emulate what you want, at least in theory.
Subject: RE: Event Handlers
Thanks Harkpabst.
Does it mean that I can execute this command using the windows command line? If not, kindly advise how do I go about setting up the fields.
Program name:
Parameters:
Command line:
Thanks.