Is it possible to grab the command line that was used to invoke a process on Mac OS X?
|
feedback
|
|
| |||||||
feedback
|
|
Does:
do what you need it to (change ntp to the program you are interested in)? This usually gives me the command-line arguments of running processes (I use to check what Launchd used when running a system daemon for example). | |||
|
feedback
|
|
Allthough it's Linux specific, it gets the commandline of process numbered This line only works if you put a real processnumber of a running process (you can find one by running the command | ||||
feedback
|
|
In Linux, the first (0'th) argument is usually the name of the invoked file. Perhaps this would work on OS X too. | |||||||||||||||
feedback
|
|
That's what I use, anyway... | |||||||
feedback
|
