Date: Fri, 1 Mar 2002 20:14:18 -0500 From: Joe Abley <jabley@automagic.org> To: Dan Nelson <dnelson@allantgroup.com> Cc: "Daniel O'Connor" <doconnor@gsoft.com.au>, 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: <D1B79BD6-2D7A-11D6-94E9-00039312C852@automagic.org> In-Reply-To: <20020301224926.GC3548@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, March 1, 2002, at 05:49 , Dan Nelson wrote: > 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" pstat -t | grep -ic 'tty[pqrs]' saves a fork. Since we're being silly. Joe 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?D1B79BD6-2D7A-11D6-94E9-00039312C852>