Plugin to run custom shell commands.

exec(cmd, background=False, ignore_errors=False)[source]

Execute a command.

  • cmd (str) – Command to execute

  • background – If set to True, execute the process in the background, otherwise wait for the process termination and return its output (deafult: False).

  • ignore_errors – If set, then any errors in the command execution will be ignored. Otherwise a RuntimeError will be thrown (default value: False)


A response object where the output field will contain the command output as a string, and the errors field will contain whatever was sent to stderr.