From owner-freebsd-current Tue Jun 11 6:33:54 2002 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id A9DF837B40C; Tue, 11 Jun 2002 06:33:48 -0700 (PDT) Date: Tue, 11 Jun 2002 06:33:48 -0700 From: Juli Mallett To: Thomas Quinot Cc: current@FreeBSD.ORG Subject: Re: Looking for comments on a new utility... Message-ID: <20020611063348.A97611@FreeBSD.ORG> References: <20020611051517.A87966@FreeBSD.ORG> <20020611143957.A17613@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020611143957.A17613@melusine.cuivre.fr.eu.org>; from thomas@cuivre.fr.eu.org on Tue, Jun 11, 2002 at 02:39:57PM +0200 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , X-Affiliated-Projects: FreeBSD, xMach, ircd-hybrid-7 X-Towel: Yes 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 * Thomas Quinot escriurères > Le 2002-06-11, Juli Mallett écrivait : > > > 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, this would be an invaluable feature! > > Even nicer would be a user interface (command line, output style) > consistent with the existing Linux pstree utility. This one also has > a nice functionality: by default it will collapse all siblings with > the same name, in order to limit display clutter, eg: > > |-omniNames---omniNames---3*[omniNames] That seems frighteningly useless to me though. Seems a bit like a number of utilities I've seen from the Linux camp which take useful functionality and mask it behind something that looks good. What exactly can you get from that kind of output? > with the following being printed if you ask for pids ('-p'): > > |-omniNames(313)---omniNames(335)-+-omniNames(336) > | |-omniNames(338) > | `-omniNames(345) That output's pretty useful, on the other hand, but it seems overly difficult to do that sort of formatting without kludging everything with a lot of conditionals and rather than simple recursion, something more complex. > (note: this is not the same as our sysutils/pstree port, which > postprocesses the output of ps(1)). Yuck. > One version of the Linux pstree is available from the psmisc port. > Another, more recent, has been ported to several platforms (including > NetBSD), see http://www.chiark.greenend.org.uk/~bjharris/. Interesting. Thanks for the pointers. -- Juli Mallett FreeBSD: The Power To Serve Perception is prejudice / Don't classify me / Accept me as me / Not what you see To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message