4.144 - [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]]
Wed Dec 27 05:12:57 MST 2017
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)