surfa.system.run
surfa.system.run#
- surfa.system.run(command, silent=False, background=False, executable='/bin/bash', log=None)#
Runs a shell command and returns the exit code.
- Parameters
command (str) – Command to run.
silent (bool) – Send output to devnull.
background (bool) – Run command as a background process.
executable (str) – Shell executable. Defaults to bash.
log (str) – Send output to a log file.
- Returns
Command exit code.
- Return type
int