Is it possible to grab the command line that was used to invoke a process on Mac OS X?
|
|
|||||||
|
|
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). |
|||
|
|
|
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 |
|||||
|
ps --pid $PID -o args=That's what I use, anyway... – yardena Jul 26 '11 at 17:52ps -p <pid> -o args=– Nate May 7 at 17:00