sunterlib/scsh/pps/README

48 lines
1.6 KiB
Plaintext
Raw Normal View History

2003-02-20 17:40:23 -05:00
The structure pps implements a portable version of the ps command. It
2004-10-25 10:38:46 -04:00
currently supports FreeBSD (4.6,5.2), Mac OS X/Darwin (10.2/6.3), Linux
(2.4.19), AIX (4.3.2), Solaris (SunOS 5.8,5.9) (tested version). As the ps
2003-02-20 17:10:53 -05:00
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.
2004-03-27 02:44:22 -05:00
================================================================================
After installation, use the switch
-lel pps/load.scm
to load this library.
================================================================================
2004-01-22 07:27:37 -05:00
(pps) -> process-info list
2003-02-20 17:10:53 -05:00
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
2004-10-25 10:38:46 -04:00
(process-info-%cpu process-info) -> float-number
2003-02-20 17:10:53 -05:00
(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.