Monitoring a program

Ivailo Tanusheff i.tanusheff at procreditbank.bg
Thu Nov 17 09:32:35 GMT 2005


You can take a snapshot of files being used by lsof:
Port:   lsof-4.76.1.1
Path:   /usr/ports/sysutils/lsof
Info:   Lists information about open files (similar to fstat(1))
Maint:  obrien at FreeBSD.org
B-deps:
R-deps:
WWW:    http://people.freebsd.org/~abe/

Hope this will help you :)

Ivailo Tanusheff
Senior System administrator
ProCredit Bank (Bulgaria) AD




db <db at traceroute.dk> 
Sent by: owner-freebsd-questions at freebsd.org
11/16/2005 06:11 PM

To
questions at freebsd.org
cc

Subject
Monitoring a program






Hi all

I would like to know what files a program access during it's life time 
(and 
maybe also the internet connections it makes), how should I do this?
I have considered fstat, find, ktrace and searching the source or binary 
for 
path strings, but I guess I need a hook for open().

I'm running 5.4 on a ia32, but if there is a 6.x only program it is also 
welcome.

Best regards
db
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list