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.
How to learn parameters with which a process was called
The ps command can show you command-line arguments. Try this:
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
In one Terminal window, run sleep 60.
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"