Subject: Re: better w(1)
To: None <thorpej@nas.nasa.gov>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: current-users
Date: 06/21/1999 17:06:27
In some email I received from Jason Thorpe, sie wrote:
> On Mon, 21 Jun 1999 11:23:07 +1000 
>  matthew green <mrg@eterna.com.au> wrote:
> 
>  > i installed this a few weeks ago and it's great.  it looks exactly
>  > like our w(1) except that it ignores utmp and uses the process list
>  > to find out who is doing what on which tty!  most excellent.
> 
> ....how about using kvm_getprocs() instead, rather than groveling
> the proclist manually?

Ummm, I used uses sysctl() to get process information rather than
kvm_getprocs() (which I suspect uses sysctl() or at least could).

There are still some other things, however, hanging off kinfo_proc
that it needs and which it doesn't get through either interface.

Darren