List of running processes

Uwe Zessin zessin at my-deja.com
Wed Oct 11 03:11:48 EDT 2000


In article <mailman.971213982.24814.python-list at python.org>,
  <jay.krell at cornell.edu> wrote:
> You could write it..
> a) for Unix wrap ps -u 0 in something
> b) for Windows see http://home.netcom.com/~jaykrell/jps.c for a good
start
> c) For Mac, VMS, ...?

For OpenVMS, catch the output from 'SHOW SYSTEM/FULL' or 'SHOW USERS
/FULL'. I don't know 'ps' or 'jps.c' to tell if that is sufficient.

There are interfaces to system routines, like:
http://www.decus.de/~zessin/python/doc/refman/vms_lib_getjpi.html
http://www.decus.de/~zessin/python/doc/refman/vms_sys_process_scan.html
http://www.decus.de/~zessin/python/doc/refman/vms_sys_getjpiw.html

but you need privileges (GROUP, WORLD) to get at other processes
with another UIC (user identification code) than your own.

Do not install the interpreter with privileges!
You don't want you users start playing with, e.g.:
http://www.decus.de/~zessin/python/doc/refman/vms_sys_delprc.html
or
http://www.decus.de/~zessin/python/doc/refman/vms_sys_suspnd.html

--
Uwe Zessin


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list