Date: Tue, 6 Jun 2006 14:32:37 -0700 From: "pete wright" <nomadlogic@gmail.com> To: "Eduardo Meyer" <dudu.meyer@gmail.com> Cc: stable@freebsd.org Subject: Re: How can I know which files a proccess is accessing? Message-ID: <57d710000606061432q650b29b0o92465196cfa30dea@mail.gmail.com> In-Reply-To: <d3ea75b30606061339u55efbecemab0d3d0eb9adb636@mail.gmail.com> References: <d3ea75b30606061339u55efbecemab0d3d0eb9adb636@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6/6/06, Eduardo Meyer <dudu.meyer@gmail.com> wrote: > Hello, > > I need to know which files under /var a proccess (httpd here) is > acessing. It is not logs because I have a different partition for > logs. > > gstat tells me that slice ad0s1h (my /var) is 100% frequently, and in > fact with fstat I can see a number of httpd proccesses running > accesing that. But fstat only shows me inodes and the mount point. > > I need to know which files the proccesses are acessing. > if you can get fstat to help you may want to take a look at lfof, available in ports: /usr/ports/sysutils/lsof " Lsof (LiSt Open Files) lists information about files that are open by the running processes. An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file (Internet socket, NFS file or Unix domain socket). " -pete -- ~~o0OO0o~~ Pete Wright www.nycbug.org NYC's *BSD User Group
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57d710000606061432q650b29b0o92465196cfa30dea>