Why lsof shows the file as open and fstat doesn't ?

Anthony M. Rasat anthony.rasat at gmail.com
Mon Feb 15 18:02:47 UTC 2010


Yuri wrote:
>But when I run "fstat /tmp/dbus-iQmkLjgxD6" 
>it doesn't return anything, like this file isn't 
>open at all.

I'm not sure that this will answer your question but bear with me.

Usually I use lsof to list any listening TCP or UDP ports, with following command:

lsof -P -i -n

The result will clearly show you what application listening to what port. Now this is I'm not really sure if I'm correct: by default Dbus doesn't have any listening port.
 
Hope that would help you.

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com


More information about the freebsd-questions mailing list