Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 1997 12:39:47 -0500 (CDT)
From:      Daniel Ortmann <ortmann@sparc.isl.net>
To:        current@freebsd.org
Subject:   Does this idea have merit?
Message-ID:  <199709131739.MAA00426@watcher.isl.net>

next in thread | raw e-mail | index | archive | help
Since 'ps' is often run to find
- all processes belonging to a user,
- or all processes with a particular controlling tty,
- or which instances of a binary are running (i.e. how many instances
  of 'spice' circuit simulations are running)

... would it make sense to enhance procfs to provide /proc/users/,
/proc/users/binaries/, /proc/ttys/, and /proc/binaries/?  Under
these dirs we could perhaps have symlinks to the "real" processes.

(Part of my motivation is to get the information from a scripting
language such as perl ... without writing extensions.)

On the other hand, maybe I'm missing something basic.  Is there
some other way to find out (without forking a /bin/ps):
- the names and process info of all a user's processes?
- the names and process info of all processes?
- which processes are controlled by a given tty?
- which processes have a given uid?

This seems to be basic information that isn't conveniently available.

Yes?  No?

-- 
Daniel Ortmann       507.288.7732 (h)  ortmann@isl.net
2414 30 av NW, #D    507.253.6795 (w)  ortmann@vnet.ibm.com
Rochester, MN 55901  "PERL: The Swiss Army Chainsaw"



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