Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How know 1 of 18 process in lookout is run or not?

How know 1 of 18 process in lookout is run or not?
I've use monitor object, but some times work some times not. I try with absolute adress, relatif adress,
computer adress...
tanks for your help
0 Kudos
Message 1 of 2
(2,821 Views)
You can use the built in Lookout functions qgood and qbad such as:

EXP_Process_Running= new DelayOn (qgood(\\ComputerName\ProcessName\FolderInProcess\Object), 00:30);

EXP_Process_Stopped= new DelayOff (qbad(\\ComputerName\ProcessName\FolderInProcess\Object), 00:30);

or you can use a monitor object:

MonitorProcess = new Monitor (\\ComputerName\ProcessName\FolderInProcess\Object);
Monitor1.Delay= 30;

The delays in the above examples filter out bogus signal fluctuations to insure the process file being checked is actually running or not. Since it would be of little value to place the function or monitor object inside the process file to be checked, you will have to use absolute or computer relative path to another process file. The difference betwee
n them is this. If the process file is on a different computer, the DNS computer name or IP address must be used following the double backslashes (\\ComputerName\ProcessName\FolderInProcess\Object). If the process file is on the same computer, this can be simplified by using a dot following the double backslashes (\\.\ProcessName\FolderInProcess\Object). Hope this helps!
0 Kudos
Message 2 of 2
(2,821 Views)