I do that exact thing. The method I use in UV on Windows is that from
the "control" program that spawns the phantom, I do the EXECUTE pgmname
CAPTURING JUNK. Next I do a couple of lines of code to isolate the PID
that is reported back then write that out to my "status" record. I use
this same status record to "communicate" to the phantom process such as
a STOP command to have the phantom terminate.
Here's a snippet of code I use to get the PID:
DOIT = "PHANTOM ":PROG.ID
EXECUTE DOIT CAPTURING JUNK
JUNK = CHANGE(JUNK, "ID ", @FM)
CONVERT "." TO @FM IN JUNK
PHAN.ID = JUNK<2>
Hope that helps a bit.
BobW
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes
Sent: Thursday, January 19, 2006 9:06 AM
To: [email protected]
Subject: [U2] Log Process ID for Phantom in UV 10
I seem to recall in UD a SYSTEM(nn) function that holds the Unix PID. I
can't find the UV equivalent. It doesn't show in the docs to have one.
When a phantom is spawned I want that phantom to write it's PID to a
control item, along with start time, and later, the end time.
Thanks Y'all.
R. Baker Hughes
UniVerse Programming
Mouser Electronics, Inc.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/