command¶
- command.command(*args, stdout=-1, stderr=-1) CompletedProcess [source]¶
Executes a command synchronously and waits for it to complete.
- Parameters:
args – The command and its arguments to execute.
stdout – Standard output pipe, defaults to subprocess.PIPE.
stderr – Standard error pipe, defaults to subprocess.PIPE.
- Returns:
The completed process.
- command.command_async(*args, stdout=-1, stderr=-1) Popen [source]¶
Executes a command asynchronously.
- Parameters:
args – The command and its arguments to execute.
stdout – Standard output pipe, defaults to subprocess.PIPE.
stderr – Standard error pipe, defaults to subprocess.PIPE.
- Returns:
The process object.