Running Commands
- ornithology.run_command(args, stdin=None, timeout=60, echo=False, suppress=False)[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, aTimeoutError
will 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: