Shell Commands#
- ignis.utils.exec_sh(command: str, **kwargs) CompletedProcess#
Execute a shell (bash) command.
- Parameters:
command (
str) -- The command to execute.
**kwargswill be passed tosubprocess.run().- Return type:
- Returns:
The result of the command execution. You can use the
stdoutproperty to get the command's output.
- async ignis.utils.exec_sh_async(command: str) AsyncCompletedProcess#
Execute a shell (bash) command asynchronously.
- Parameters:
command (
str) -- The command to execute.on_finished -- A function to call when the process is finished. An instance of
AsyncCompletedProcesswill be passed to this function.
- Return type:
- Returns:
The instance of
Gio.Subprocess.