Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2002 16:49:26 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        Danny Braniss <danny@cs.huji.ac.il>, 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:  <20020301224926.GC3548@dan.emsphone.com>
In-Reply-To: <1015021184.19697.25.camel@chowder.gsoft.com.au>
References:  <E16gjfE-000166-00@pampa.cs.huji.ac.il> <1015021184.19697.25.camel@chowder.gsoft.com.au>

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




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