4.147 - [sys] Built-In
Mnemonic aid: sys for SYStem
This provides a means to execute a system command.
If the command creates output, it will be incorporated into the output stream.
If the command encounters a problem, the stderr results will also be incorporated into the output stream.
If you wish to suppress the output of the command with regard to the output stream, execute it within a [comment] and that will prevent the results from appearing.
[comment [sys date]]
Mon Apr 16 17:19:18 MDT 2018
Other built-ins used here: [comment]
As shell commands can present a significant security risk, there is a means to disable this capability when instantiating the class. If noshell=True then [sys] does nothing:
mod = macro(noshell=True)