[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Provides access to procfs
, which is a filesystem-like abstraction for UNIX process metadata contained in /proc
, as well as features for examining and controlling the state of processes external to the FreeM interpreter.
The first subscript always represents the process ID of the external process being acted upon.
The following values for the second subscript are supported:
EXISTS
+R -U -DReturns 1 if the referenced process exists; 0 otherwise.
ATTRIBUTE
+R -U -DExposes the /proc
files as descendant subscripts, i.e., WRITE ^$ZPROCESS(2900,"ATTRIBUTE","cmdline"),!
would print the initial command line used to invoke process ID 2900. Note that the third subscript (the immediate descendant of the ATTRIBUTE
subscript) is case sensitive.
SIGNAL
-R +U -DAllows signals to be sent to the referenced process. The following subscript is an integer value corresponding to the desired signal number. You may obtain a list of signal numbers on most UNIX systems with the command kill -l
.
The constants %SYS.SIGNAL.HUP
, %SYS.SIGNAL.INT
, %SYS.SIGNAL.KILL
, and %SYS.SIGNAL.TERM
are provided for convenient use of this SSVN subscript.
This document was generated on September 20, 2023 using texi2html 5.0.