From owner-freebsd-questions Sun Mar 10 18:54:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id 3798937B417 for ; Sun, 10 Mar 2002 18:54:37 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 2C3E3901A00; Sun, 10 Mar 2002 21:53:47 -0500 (EST) Date: Sun, 10 Mar 2002 21:53:46 -0500 From: mpd To: Aaron Hill Cc: questions@freebsd.org Subject: Re: Utility to list accessed files? Message-ID: <20020310215346.A243@rochester.rr.com> References: <41827.203.11.225.5.1015813198.squirrel@www.futureuse.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <41827.203.11.225.5.1015813198.squirrel@www.futureuse.net>; from fbsdlist@futureuse.net on Mon, Mar 11, 2002 at 01:19:58PM +1100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Mar 11, 2002 at 01:19:58PM +1100, Aaron Hill wrote: > Hello, > > I have a scripted process here that I am trying to debug. It would help me > if I could a listing of all the files being accessed by the process. The > scripts themselves are somewhat complex. > > Is there a utility available able that can do this? For example, the time > utility ... > > time ls -l > > ... calculates how long "ls -l" takes to execute. What if I wanted a list > of any files opened by "ls" ... can it be done? > > Thanks > Aaron Hill ports/sysutils/lsof should do the trick. mike -- ___________________________________________________________ "HAVE SOME ARCTIC CIRCLE-CANDY!" - Pokey the Penguin from "POKEY AND THE TRAIN" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message