From owner-freebsd-stable@FreeBSD.ORG Tue Jun 6 21:44:26 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A001716B135 for ; Tue, 6 Jun 2006 21:40:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AF8743D6D for ; Tue, 6 Jun 2006 21:40:26 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id k56LeHab071481; Tue, 6 Jun 2006 17:40:17 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-stable@FreeBSD.org Date: Tue, 6 Jun 2006 17:40:02 -0400 User-Agent: KMail/1.6.2 References: <20060606211401.GH50794@0lsen.net> In-Reply-To: <20060606211401.GH50794@0lsen.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200606061740.04698.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88/1515/Tue Jun 6 09:38:42 2006 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Clint Olsen Subject: Re: How can I know which files a proccess is accessing? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 21:44:32 -0000 On Tuesday 06 June 2006 05:14 pm, Clint Olsen wrote: > On Jun 06, Eduardo Meyer wrote: > > 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. > > Linux has a cool program: lsof (list open files). Does FreeBSD > have something similar? http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/lsof/ Jung-uk Kim