My domino server is on the Internet and acts as an gateway to blcok spam, but I think there is a memory leak somewhere, it is using more and more memory, so I have to do “tell smtp q” then “load smtp” very often.
I scheduled the program doc to run these two programs. But I think if I can use an event to trigger then better. So if free momory is less than 300,000,000 bytes on the server, then trigger an event to run “tell smtp q”, but I need to do “load smtp” after that. But the event action can do a run program, and just one program, any one has a way to run “tell smtp q” and “load smtp” in one program?
Or I have to write a program to do these.
Thanks!
Greg
Subject: Run more than one program when a event occurs
A batch-file (.cmd) should solve your problem.
type following lines in it:
nserver -c “tell smtp quit”
nserver -c “lo smtp”
a sleep 120 would be a good brake between this two lines.
save the file in your domino program directory, where the notes.ini is.
give it a try
Jens
Subject: Run more than one program when a event occurs
You should be able to do it using LS agent which runs scheduled , checks available memory using Windows API and “posts” console commands to server when needed.
Subject: RE: Run more than one program when a event occurs
Do you have any sample code?Please post some examples?! API calls and POST cosole commands. I am saying if this is convienient for you!
Thanks!
Greg
Subject: RE: Run more than one program when a event occurs
Here is an example of sendign console commands from LotusScript:http://www.openntf.org/Projects/codebin/codebin.nsf/CodeSearch/0CF30F1F786D3A3788256BDC000CC19B
In R6 there is a method for executing commands in console: consoleReturn$ = session.SendConsoleCommand( _
serverName$, consoleCommand$)
For finding available RAM memory, use links:
http://www.freevbcode.com/ShowCode.Asp?ID=46
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=54400&lngWId=1