Running Commands¶
- ornithology.run_command(args, stdin=None, timeout=60, echo=False, suppress=False, as_user=None)[source]¶
Execute a command.
- Parameters:
args (
List[str]) – The command to run, as a list of strings.timeout (
int) – If the command does not return within this time, aTimeoutErrorwill be raised.echo (
bool) – IfTrue, the stdout and stderr of the command will be printed.suppress (
bool) – IfTrue, the details of the command execution will be truncated.
- Return type: