summaryrefslogtreecommitdiffstats
path: root/src/linux/ogOperations.py
Commit message (Collapse)AuthorAgeFilesLines
* (BUG) Handling command errorAlvaro Neira Ayuso2020-01-191-2/+6
| | | | | | This patch adds support for handling the error when the command is wrong formed. Now, if we send a shell/run command and the shell command is incomplete, the program crashes.
* Add shell run and output commandsAlvaro Neira Ayuso2020-01-191-0/+5
| | | | | | | | Opengnsys needs a support to execute commands on the machine. This patch adds the support for executing two new commands "shell/run" and "shell/output". The first one, give us the support for executing a command in the machine and keep save in a queue the output. The second one, give us the support for sending the output from the command executed.
* Add global variable to set up OpenGnsys pathAlvaro Neira Ayuso2020-01-191-2/+4
| | | | | | This variable allow us to modify the opengnsys path without modify several parts of the code. This change reduces the probability to add any bug forgetting to change any line.
* Include the reboot support in ogOperationAlvaro Neira Ayuso2020-01-191-2/+4
| | | | | This new patch allows us to reboot the linux machine using reboot binary or in OpenGnsys client case, use the specific script.
* Include the poweroff support in ogOperationAlvaro Neira Ayuso2020-01-191-1/+7
| | | | | This new patch allows us to turn off the linux machine using poweroff binary or in OpenGnsys client case, use the specific script.
* Add new process support for reboot messageAlvaro Neira Ayuso2020-01-191-0/+3
|
* Add ogProcess and ogOperation for linuxAlvaro Neira Ayuso2020-01-191-0/+3
Thoses new classes allows us to process and execute commands from server side sent using HTTP format.