How to learn parameters with which a process was called

I am wondering, how I can see how a process visible in tops was launched. I would like to learn how I could launch it from the command line, so that it would behave exactly like it would if launched by the parent process that launches it under usual circumstances.
The ps command can show you command-line arguments. Try this:
  1. In one Terminal window, run sleep 60.

  2. In other window, run ps as shown below.

.

Code Block
% ps -p `pgrep sleep` -o args
ARGS
sleep 60


Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
How to learn parameters with which a process was called
 
 
Q