sunterlib/scsh/pps
Martin Gasbichler 3490b2b26e Adjust version number in NEWS 2004-03-27 08:01:43 +00:00
..
AUTHORS Changed to new package system. 2004-03-10 18:46:33 +00:00
BLURB Automatically generate file DETAILS containing library details. 2003-03-11 06:13:58 +00:00
NEWS Adjust version number in NEWS 2004-03-27 08:01:43 +00:00
README Add loading instructions 2004-03-27 07:44:22 +00:00
packages.scm Moved package and interface definition to packages.scm. Generate load scripts. 2004-03-14 22:59:57 +00:00
pkg-def.scm Insert (install-lib-version (1 0)) 2004-03-27 06:59:16 +00:00
pps.scm Fixed bug in FreeBSD implementation: return seconds instead of minutes. 2004-01-22 12:33:28 +00:00

README

The structure pps implements a portable version of the ps command. It
currently supports FreeBSD (4.6), Mac OS X/Darwin (10.2/6.3), Linux
(2.4.19), AIX (4.3.2), Solaris (SunOS 5.8) (tested version). As the ps
command is not part of any standard this package is likely to fail if
the version of your system differs from the one I tested. Please
report incompatible versions and, if possible, provide an adapted
version.

================================================================================

After installation, use the switch

-lel pps/load.scm

to load this library.

================================================================================


(pps) -> process-info list

Calls the ps command and parses the output into a list of process-info
records.


(process-info? thing) -> boolean

Type predicate for process-info.


(process-info-pid process-info) -> number
(process-info-ppid process-info) -> number
(process-info-logname process-info) -> string
(process-info-real-uid process-info) -> number
(process-info-effective-uid process-info) -> number
(process-info-saved-set-uid process-info) -> number
(process-info-real-gid process-info) -> number
(process-info-effective-gid process-info) -> number
(process-info-saved-set-gid  process-info) -> number
(process-info-time process-info) -> number
(process-info-tty process-info) -> string
(process-info-executable process-info) -> string
(process-info-command-line process-info) -> string

Selectors for process-info. PROCESS-INFO-TIME returns the CPU time of
the process in seconds.