From owner-freebsd-current Wed Jun 12 0:59:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from moya.lambermont.dyndns.org (e165253.upc-e.chello.nl [213.93.165.253]) by hub.freebsd.org (Postfix) with ESMTP id 26E4537B405 for ; Wed, 12 Jun 2002 00:59:46 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by moya.lambermont.dyndns.org (Postfix) with ESMTP id 471E336413 for ; Wed, 12 Jun 2002 09:59:38 +0200 (CEST) Received: by moya.lambermont.dyndns.org (Postfix, from userid 1001) id 7473836405; Wed, 12 Jun 2002 09:59:36 +0200 (CEST) Date: Wed, 12 Jun 2002 09:59:36 +0200 To: current@FreeBSD.org Subject: Re: Looking for comments on a new utility... Message-ID: <20020612095936.A20655@moya.lambermont.dyndns.org> References: <20020611051517.A87966@FreeBSD.ORG> <20020611230938.GA24547@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020611230938.GA24547@gits.dyndns.org>; from cyrille.lefevre@laposte.net on Wed, Jun 12, 2002 at 01:09:38AM +0200 From: hans@lambermont.dyndns.org (Hans Lambermont) X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Cyrille Lefevre wrote: > On Tue, Jun 11, 2002 at 05:15:17AM -0700, Juli Mallett wrote: ... > > would like to see done to ps(1) :) The most notable request was for a > > feature I've missed having in our ps(1) for a while, the ability to get a > > tree of processes printed so you can tell who is whose child, etc. Yes, I still missed that one. Go for it. > how about this one ? > > 1 ? 0 \_ init > 2814 ttyp0 0 \_ sh > 2816 ttyp0 0 | \_ sh > 57423 ? 0 | \_ sleep > 2596 ? 0 \_ inetd > 24834 ? 0 | \_ rlogind > 24838 ttyp0 0 | | \_ ksh > 24912 ttyp0 0 | | \_ ksh > 57504 ? 0 | \_ telnetd > ^^^^^^^^^^^^^^^^^^^^^^ command tree > ^^^^^^^^^^^^^^^^^^^^ standard ps fields > taken from ast-open `ps -T'. Also nice (why no UID field ?) I use ps trees like these to quickly find out who is misusing what ;-) > for fun, how about a simple awk script like the one in attachment ;^) :) Hans Lambermont -- http://lambermont.webhop.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message