summaryrefslogtreecommitdiffstats
path: root/src/linux
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-02 19:48:14 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit2fa8aa4ff7deaf92c5b69be0c69fee95ce18ac37 (patch)
tree9c82dcd20ce3ddda5b8a1ba0e7edcbd9e91cba4e /src/linux
parentf566579f8e79eee8e51bab70eae91d705f2f2d00 (diff)
Add session command to init the opengnsys session
ogAdmClient has a support for initializing the session in the machine. This new command allows the new ogClient to execute the same script to init the session. The arguments will be received from the server as a json message. Format: { "disk" : "0", "partition" : "1"}
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/ogOperations.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py
index 147944f..34ba400 100644
--- a/src/linux/ogOperations.py
+++ b/src/linux/ogOperations.py
@@ -23,3 +23,7 @@ def execCMD(cmd):
raise ValueError('Error: Incorrect command value')
return result.decode('utf-8')
+
+def procsession(disk, partition):
+ result = subprocess.check_output([OG_PATH + 'interfaceAdm/IniciarSesion', disk, partition], shell=True)
+ return result.decode('utf-8')