aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

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.


[sys shellCommand]

[sys date]
[comment [sys date]]

Wed Dec 27 05:12:57 MST 2017
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)
Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses python 2.7