Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2002 11:49:20 +0200
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        Paul Halliday <dp@penix.org>, Patrick Thomas <root@utility.clubscholarship.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: how do I see the current number of PTYs in use ? 
Message-ID:  <E16gjfE-000166-00@pampa.cs.huji.ac.il>
In-Reply-To: Message from "Daniel O'Connor" <doconnor@gsoft.com.au>  of "01 Mar 2002 20:31:49 %2B1130." <1014973312.18005.22.camel@chowder.gsoft.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16gjfE-000166-00>