Re: ProcessPath by using PID
Re: ProcessPath by using PID
- Subject: Re: ProcessPath by using PID
- From: Aram Greenman <email@hidden>
- Date: Sun, 14 Mar 2004 13:43:57 -0800
I have a PID already and using that PID I want to find the Path of that
running process.
I have seen the examples with sysctl using KERN_PROC and
KERN_PROC_ALL,
These are fine but as far as I can tell don't give me the path of the
PID,
There is no reliable way to do this, but sysctl will at least give you
the executable path most of the time. You can check out the code to
AGProcess <
http://sf.net/projects/agkit> for an example, the method you
want to look at is -doProcargs.
Aram
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.