From owner-freebsd-hackers Fri Mar 1 14:49:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 3B32D37B417 for ; Fri, 1 Mar 2002 14:49:32 -0800 (PST) Received: from dan.emsphone.com (dan@localhost [127.0.0.1]) by dan.emsphone.com (8.12.2/8.12.2) with ESMTP id g21MnR5P060809; Fri, 1 Mar 2002 16:49:27 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.2/Submit) id g21MnQkl060807; Fri, 1 Mar 2002 16:49:26 -0600 (CST) Date: Fri, 1 Mar 2002 16:49:26 -0600 From: Dan Nelson To: "Daniel O'Connor" Cc: Danny Braniss , Paul Halliday , Patrick Thomas , freebsd-hackers@FreeBSD.ORG Subject: Re: how do I see the current number of PTYs in use ? Message-ID: <20020301224926.GC3548@dan.emsphone.com> References: <1015021184.19697.25.camel@chowder.gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1015021184.19697.25.camel@chowder.gsoft.com.au> User-Agent: Mutt/1.3.27i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (Mar 02), Daniel O'Connor said: > On Fri, 2002-03-01 at 21:19, Danny Braniss wrote: > > fstat | awk '{print $8}' | egrep 'tty[pqrsPQRS]' | sort -u | wc -l > > > > is IMHO correct, ;-) > > Ach, of course :) > I hope the original poster is satisfied 8-) Easier might be "pstat -t | grep 'tty[pqrsPQRS]' | wc -l" -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message