From owner-freebsd-current Tue Jun 11 6:35:13 2002 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 1B43137B413; Tue, 11 Jun 2002 06:35:05 -0700 (PDT) Date: Tue, 11 Jun 2002 06:35:05 -0700 From: Juli Mallett To: Dag-Erling Smorgrav Cc: current@FreeBSD.ORG Subject: Re: Looking for comments on a new utility... Message-ID: <20020611063505.B97611@FreeBSD.ORG> References: <20020611051517.A87966@FreeBSD.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: ; from des@ofug.org on Tue, Jun 11, 2002 at 02:40:54PM +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 * Dag-Erling Smorgrav escriurères > Juli Mallett writes: > > ps(1)'s internals, however, didn't seem quite right to me, but after about > > 10 minutes reading kvm(3) manpages and recalling some tricks with recursive > > programming to produce an N-level tree with as many as N-1 elements, I had > > come up with a simple utility to print out a "process tree". > > Don't do anything in ps(1) that depends on libkvm. It has to be > doable with sysctl as well. I believe I can get pid, ppid, username (or at least uid [yay user_from_uid]), etc., from sysctl(3) at least as easily as with kvm(3). -- 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