Hi,
In case anybody knows about this issue...
There is a need to get command line of native application on Mac OS X at any arbitrary point (access to argc/argv is not possible because it's a profiler agent, i.e. plugin to Java). Other UNIXes have procfs, AFAIK Mac OS X does not. Some found references tell sysctl should be used instead, but I don't understand what I should particullary do with it.
Alternatively, where can I find source code of the 'ps' program for Mac OS X? It can print command lines so should contain the answer.
Best regards,
Anton
A question to Mac OS X gurus
-
- Posts: 46
- Joined: Mon Jan 24, 2005 3:01 pm
-
- Posts: 6172
- Joined: Wed Aug 11, 2004 8:37 am