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:  [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
11/16/2005 06:11 PM

To
[EMAIL PROTECTED]
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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to