Doug:

That is an idea.  I was hoping I could be more direct, but this should work.

Thanks,

Bill

------------------------------------------------------------------------
Doug said the following on 4/2/2010 8:56 AM:
Bill:

Use the LOCK command with number 0 through 63.  Have your phantom process do
a "LOCK 60".  Then you can test it in other programs using the else clause:

LOCK 60 THEN
  UNLOCK 60
* Restart phantom
END ELSE
* Phantom is running do nothing
END

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Bill Haskett
Sent: Friday, April 02, 2010 9: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

Reply via email to