§ 4.151 - [sys] Built-InMnemonic 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. [sys shellCommand] [sys date] [comment [sys date]] Fri Mar 3 15:11:59 MST 2023
Fri Mar 3 15:11:59 MST 2023
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)
Keyboard Navigation
, Previous Page . Next Page t TOC i Index |