By ejannett on janv. 24, 2013
What this process is doing ?
Tracing a running process and find out what it is doing is
also a good way to prevent a crash or to understand what caused the crash.
Now with Dtrace, processes can be traced a lot more efficiently I agree, but for that you will need a Dtrace script or be a Dtrace expert who can write Dtrace instruction on the fly. This is not the case of everybody and when the question
is simple as "which files are opened by that process" or "what is the port number he is trying to connect to" a simple call to a tools like truss (strace for linux) is much more quicker.
several commands are available. Man pages are usually good and
drawing will be more efficient than my poor English. I will then only use
pictures which are (I hope) self explanatory.
Using Whocalls (1)
Using apptrace (1)/sotruss (1)