From owner-freebsd-stable@FreeBSD.ORG Tue Jun 6 21:39:27 2006 Return-Path: X-Original-To: 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 7CCCA16D0DA for ; Tue, 6 Jun 2006 21:32:43 +0000 (UTC) (envelope-from nomadlogic@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEBEF43D49 for ; Tue, 6 Jun 2006 21:32:39 +0000 (GMT) (envelope-from nomadlogic@gmail.com) Received: by wx-out-0102.google.com with SMTP id i31so19077wxd for ; Tue, 06 Jun 2006 14:32:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ct8pTYR7WR0pY8xxrHC5KmHpy+eLdpTBt2p6C2rmRTKOlHRrmrnEBl64hsm3+BKu7ux4bwuHhTZ3XwjS0P/jNjGJ+2k5YKdtRnFtrRaAnauPm5AWng+uxvUpAbUMPv9+aK38QVstV95/Ou/z9JZ5eGcaAS09ORgKhFVx01IsiL4= Received: by 10.70.10.2 with SMTP id 2mr31594wxj; Tue, 06 Jun 2006 14:32:38 -0700 (PDT) Received: by 10.70.83.15 with HTTP; Tue, 6 Jun 2006 14:32:37 -0700 (PDT) Message-ID: <57d710000606061432q650b29b0o92465196cfa30dea@mail.gmail.com> Date: Tue, 6 Jun 2006 14:32:37 -0700 From: "pete wright" To: "Eduardo Meyer" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: stable@freebsd.org 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:39:34 -0000 On 6/6/06, Eduardo Meyer 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