Bill,
I have my Phantom processes update a status record (in the DICT of the
file related to the Process) with the date/time as the start of each
loop. Each program has a characteristic sleep time. The status record
also serves as a run flag which can be set to '0' to stop the phantom.
I built a Inquiry screen that collects all the status records and
displays them. Any process with an 'out of range' date /time stamp is
suspect (has stopped).
I had at one time a Phantom that watched these status records and
re-launched the phantoms if the date/time was out of range, but I
discontinued that as it was all too busy. I cannot think of the last
time I actually had a phantom fail.
We are on HP-UX so I can grep PHANTOM and see the name of the program,
but would not tell me the account it is running in:
!sh ps -ef | grep PHANTOM
marcr 19329 1 0 01:41:02 ? 6:26 /usr/ud/bin/udt
PHANTOMHUSH SYS.Z15
Marc Rutherford
Senior Programmer/Analyst
Advanced Bionics LLC
661) 362 1754
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Bill Haskett
Sent: Friday, April 02, 2010 8:25 AM
To: U2 Mail List
Subject: [U2] UD: Phantoms
In UniData, does anyone know of a sure way to determine if a BASIC
program is running as a phantom?
We have a background service program in our application that has to be
running as a phantom whenever UniData starts. The ability to start
something when the dbms starts doesn't exist in UniData, so I have to
schedule the task when Windows starts. However, if the program stops
(or UD was stopped and restarted) I have no sure way to know if it's
running.
Does UD have any way to know this?
Thanks,
Bill Haskett
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users