saberx.sabercore package

Submodules

saberx.sabercore.shellexecutor module

class saberx.sabercore.shellexecutor.ShellExecutor(**kwargs)[source]

Bases: object

Class for executing shell commands

execute_shell_list()[source]

Method for executing a list of shell commands

This method executes a list of shell commands.

It is to be notes that, if a single command fails, the remaning commands adter the failed command will be ignored.

Returns:status of execution of the commands.
Return type:bool
execute_shell_single(command)[source]

Method for executing a single shell command

This method executes a single shell command

Parameters:command (string) – command tp be exeuted
Returns:status of the command execution, output of the command, return code
Return type:bool, output, proc_exit_code

Module contents