Date: Tue, 30 Jan 2007 00:31:47 +0100 From: "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de> To: Bill Moran <wmoran@collaborativefusion.com> Cc: freebsd-questions@freebsd.org Subject: Re: Command watching opened files by processes in FreeBSD Message-ID: <45BE83E3.8040107@mail.zedat.fu-berlin.de> In-Reply-To: <20070129180509.49217b93.wmoran@collaborativefusion.com> References: <45BE7BCD.3000009@mail.zedat.fu-berlin.de> <20070129180509.49217b93.wmoran@collaborativefusion.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Moran wrote: > In response to "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>: > > >> Hello out there, >> does FreeBSD has a nativ root-restricted facility watching opened files >> of a process or process group (like lsof or filemon)? >> > > Is fstat what you're looking for? > > Sorry for the noise. Yes, fstat could possibly that I wanted it for, but is there a way to make it look like a continious watching a process opening and closing files? fstat -p PID gives me a snapshot of the status quo as of the second I enter the command but that menas I could miss the right time point. Maybe something like ptrace will be better. Thanks a lot for the pretty fast answers! -- O. Hartmann
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45BE83E3.8040107>