From owner-freebsd-questions Sun Mar 10 18:56:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rudiment.dk (rudiment.egmont-kol.dk [130.225.237.12]) by hub.freebsd.org (Postfix) with ESMTP id 6776B37B402 for ; Sun, 10 Mar 2002 18:56:15 -0800 (PST) Received: by mail.rudiment.dk (Postfix, from userid 104) id 719B512130; Mon, 11 Mar 2002 03:58:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.rudiment.dk (Postfix) with ESMTP id 6749E11F72 for ; Mon, 11 Mar 2002 03:58:57 +0100 (CET) Date: Mon, 11 Mar 2002 03:58:57 +0100 (CET) From: Morten Grunnet Buhl To: Subject: Re: Utility to list accessed files? In-Reply-To: <41827.203.11.225.5.1015813198.squirrel@www.futureuse.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 11 Mar 2002, Aaron Hill wrote: > 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? Im not completely sure this is what your looking for but here goes: man (ktrace|kdump) or do # ktrace ls ... # kdump hope this help in any way... Morten. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message