Tracing processes

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 truss(1)

oups

Using Whocalls (1)


oups

Using apptrace (1)/sotruss (1) 

oups

oups

oups


        
    
Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Emmanuel Jannetti blog

Search

Archives
« mai 2015
lun.mar.mer.jeu.ven.sam.dim.
    
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today