From GridLAB-D Wiki
Jump to: navigation, search

#system - Execute a command in an operating system shell


#system command


The shell executes command and the return value is assigned to the return_code global variable.

If the system() call used to execute the command returns either 127 or -1, the call is deemed to have failed and the GLM loader fails. Any other return code is regarded as having been a successful call, even if the return code is non-zero.


Shell commands are almost by definition not portable. Users seeking portable models should avoid using system in a GLM files.


The system macro was introduced in and is targeted for Hassayampa (Version 3.0).

See also