From owner-freebsd-hackers Fri Mar 1 0:20:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from saruman.xwin.net (saruman.xwin.net [205.219.158.250]) by hub.freebsd.org (Postfix) with ESMTP id A464537B417 for ; Fri, 1 Mar 2002 00:20:37 -0800 (PST) Received: from localhost (dp@localhost) by saruman.xwin.net (8.11.4/8.11.4) with ESMTP id g218Lkd12431; Fri, 1 Mar 2002 02:21:47 -0600 Date: Fri, 1 Mar 2002 02:21:46 -0600 (CST) From: Paul Halliday X-X-Sender: To: Patrick Thomas Cc: Subject: Re: how do I see the current number of PTYs in use ? In-Reply-To: <20020228215541.T33309-100000@utility.clubscholarship.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Thu, 28 Feb 2002, Patrick Thomas wrote: > > (asked on -questions and got no response, also did a `sysctl -a | grep > pty` and only saw error messages) > > I am trying to troubleshoot something - the bad thing that is happening is > that I try to create new `screen` windows and I get 'No more PTYs'. I > know how to add more PTYs, etc., and I am not asking how to do that - I am > simply asking: > > How do I, when I am told I have no more PTYs, know whether I just hit 32 > out of 32, or 128 out of 128, or what ? I want to know how many PTYs I > have available, and how many are in use. > > How do I do that ? ls /dev | grep pty | wc -l who | awk '{print $2}' | grep p | wc -l ;P Paul H. "Don't underestimate the power of stupid people in large groups" ___________________ http://dp.penix.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message