diff options
Diffstat (limited to 'src/linux/ogOperations.py')
-rw-r--r-- | src/linux/ogOperations.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index e3d69e2..1502f40 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -14,3 +14,8 @@ def reboot(): subprocess.call('source ' + OG_SCRIPT_PATH + 'etc/preinit/loadenviron.sh; ' + OG_SCRIPT_PATH + 'scripts/reboot', shell=True) else: subprocess.call(['/sbin/reboot']) + +def execCMD(cmd): + cmds = cmd.split(" ") + result = subprocess.run(cmds, stdout=subprocess.PIPE) + return result.stdout.decode('utf-8') |