From owner-freebsd-current Tue Jun 11 11:42:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id BFB2D37B407; Tue, 11 Jun 2002 11:42:22 -0700 (PDT) Received: from pool0380.cvx21-bradley.dialup.earthlink.net ([209.179.193.125] helo=mindspring.com) by snipe.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17Hqay-0004Pt-00; Tue, 11 Jun 2002 11:42:21 -0700 Message-ID: <3D064468.D1B1F2C6@mindspring.com> Date: Tue, 11 Jun 2002 11:41:44 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Juli Mallett Cc: Thomas Quinot , current@FreeBSD.ORG Subject: Re: Looking for comments on a new utility... References: <20020611051517.A87966@FreeBSD.ORG> <20020611143957.A17613@melusine.cuivre.fr.eu.org> <20020611063348.A97611@FreeBSD.ORG> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Juli Mallett wrote: > > |-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. Theres a program in -ports. If you insist on doing it, though, look at the output of "w -d" (yeah, I have a vested interest in it, but it's still pretty cool). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message