From owner-freebsd-questions Tue Sep 5 8:37:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 8C37237B424 for ; Tue, 5 Sep 2000 08:37:20 -0700 (PDT) Received: from bagabeedaboo.security.at12.de (dial-194-8-209-52.netcologne.de [194.8.209.52]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id RAA28326; Tue, 5 Sep 2000 17:37:19 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.11.0/8.11.0) with ESMTP id e85FbCw02104; Tue, 5 Sep 2000 17:37:12 +0200 (CEST) (envelope-from pherman@frenchfries.net) Date: Tue, 5 Sep 2000 17:37:12 +0200 (CEST) From: Paul Herman To: Simon Nielsen Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Number of open files per process In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 5 Sep 2000, Paul Herman wrote: > On Tue, 5 Sep 2000, Simon Nielsen wrote: > > > > > Is it posible to find out how may files a process has open? > > > > One way: fstat -p pid | wc -l Oops, that would list the number of open files + 1. Right idea, anyway. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message