[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.12 ^$ZPROCESS

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 -D

Returns 1 if the referenced process exists; 0 otherwise.

ATTRIBUTES +R -U -D

Exposes the /proc files as descendant subscripts, i.e., WRITE ^$ZPROCESS(2900,"ATTRIBUTES","cmdline"),! would print the initial command line used to invoke process ID 2900.

SIGNAL -R +U -D

Allows 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.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by root on October 14, 2020 using texi2html 1.82.