Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 09:59:36 +0200
From:      hans@lambermont.dyndns.org (Hans Lambermont)
To:        current@FreeBSD.org
Subject:   Re: Looking for comments on a new utility...
Message-ID:  <20020612095936.A20655@moya.lambermont.dyndns.org>
In-Reply-To: <20020611230938.GA24547@gits.dyndns.org>; from cyrille.lefevre@laposte.net on Wed, Jun 12, 2002 at 01:09:38AM %2B0200
References:  <20020611051517.A87966@FreeBSD.ORG> <20020611230938.GA24547@gits.dyndns.org>

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




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