Date: Thu, 17 Nov 2005 11:32:31 +0200 From: Ivailo Tanusheff <i.tanusheff@procreditbank.bg> To: db <db@traceroute.dk> Cc: questions@freebsd.org Subject: Re: Monitoring a program Message-ID: <OF2527A793.0C60DE4D-ONC22570BC.002E5ED0-C22570BC.00346B2D@procreditbank.bg> In-Reply-To: <200511161611.06437.db@traceroute.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@traceroute.dk> Sent by: owner-freebsd-questions@freebsd.org 11/16/2005 06:11 PM To questions@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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF2527A793.0C60DE4D-ONC22570BC.002E5ED0-C22570BC.00346B2D>