From owner-freebsd-hackers Fri Mar 1 1:49:32 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.10]) by hub.freebsd.org (Postfix) with ESMTP id 0600537B417 for ; Fri, 1 Mar 2002 01:49:29 -0800 (PST) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=exim) by cs.huji.ac.il with esmtp (Exim 3.34 #1) id 16gjfI-0003At-00; Fri, 01 Mar 2002 11:49:24 +0200 Received: from localhost ([127.0.0.1] helo=pampa.cs.huji.ac.il ident=danny) by pampa.cs.huji.ac.il with esmtp (Exim 3.22 #2) id 16gjfE-000166-00; Fri, 01 Mar 2002 11:49:20 +0200 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Daniel O'Connor" Cc: Paul Halliday , Patrick Thomas , freebsd-hackers@FreeBSD.ORG Subject: Re: how do I see the current number of PTYs in use ? In-Reply-To: Message from "Daniel O'Connor" of "01 Mar 2002 20:31:49 +1130." <1014973312.18005.22.camel@chowder.gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Mar 2002 11:49:20 +0200 From: Danny Braniss Message-Id: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > On Fri, 2002-03-01 at 19:51, Paul Halliday wrote: [...] > This -> > fstat | awk '{print $8}' | egrep 'tty[pqrsPQRS]' | wc -l > > Is much more accurate. > (ie on my machine who only shows 4 entries :) fstat | awk '{print $8}' | egrep 'tty[pqrsPQRS]' | sort -u | wc -l is IMHO correct, ;-) danny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message