Event handler, process trigger
i have a source which polls once every 60 secs...
i have alarm limits which trigger process commands (batch file) via event handler..
the external device which is communicated with via the batch file enters a busy state during communication.
my scripts etc cater for this by port checking..
problem is, due to polling, if 2 event handlers trigger at exactly the same time, neither one really gets a head start on the other, so neither sees the port busy.
basically i cannot handle simultaneous triggers...
is there a global setting for staggering process commands? 5 seconds should do it.
Can you use some kind of O/S-level semaphore? lockfile() maybe?