exec_sh#

ignis.utils.Utils.exec_sh(command: str, **kwargs) CompletedProcess#

Execute a shell (bash) command.

Parameters:

command (str) -- The command to execute.

**kwargs will be passed to subprocess.run().

Return type:

CompletedProcess

Returns:

The result of the command execution. You can use the stdout property to get the command's output.