Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2002 06:35:05 -0700
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: Looking for comments on a new utility...
Message-ID:  <20020611063505.B97611@FreeBSD.ORG>
In-Reply-To: <xzpr8jec7jd.fsf@flood.ping.uio.no>; from des@ofug.org on Tue, Jun 11, 2002 at 02:40:54PM %2B0200
References:  <20020611051517.A87966@FreeBSD.ORG> <xzpr8jec7jd.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
* Dag-Erling Smorgrav <des@ofug.org> escriurères
> Juli Mallett <jmallett@FreeBSD.org> 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 <jmallett@FreeBSD.org>                  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




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