Process Handle?

Yennie at aol.com Yennie at aol.com
Thu Jul 3 17:53:00 EDT 2003


Scott,

If you are on an OS which supports the "ps" command via shell() (such as 
MacOS X), you can get a process listing which shows the ppid of each process- that 
is, the parent process ID that launched it.
For example, "ps -l -x" from Terminal on Mac gives me this:

UID    PID   PPID CPU PRI NI       VSZ     RSS WCHAN   STAT   TT        TIME 
COMMAND
...
502   4051    183    0   62   0    109848   13008 -       S      ??     
8:17.17 /Users/yennie/Desktop/MC 2.5/MetaCard.app/Cont
...

Thus 4051 is the process id of Metacard- anything with 4051 as the PPID would 
have be launched by Metacard, and in turn you could use that process ID to 
see what processes the sub-process had launched (again by looking for that 
process ID as the PPID).

Dunno if that helps...

------------------------------
Brian Yennie
Chief Technology Officer
QLD Learning, LLC
www.QLDLearning.com

PH: (904)-997-0212
EMAIL: Yennie at aol.com
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030703/585e9cf9/attachment.htm


More information about the metacard mailing list