May-31-2018, 10:10 AM
Hello,
is there a possibility to let my Python program know whether a session with the virtual machine is opened or closed?
Situation:
VMWare View is installed on a Raspberry PI.
The goal is to shutdown the Raspberry PI when the user kills the virtual machine.
My idea is to write a small python script which asks whether the session is still opened oder not every few seconds.
If it realizes that the session has been closed, it uses something like "os.system("shutdown now -h")" and that´s it.
I was very grateful if anyone has any idea how i can work on my problem or where i might want to have a look at.
hhh
is there a possibility to let my Python program know whether a session with the virtual machine is opened or closed?
Situation:
VMWare View is installed on a Raspberry PI.
The goal is to shutdown the Raspberry PI when the user kills the virtual machine.
My idea is to write a small python script which asks whether the session is still opened oder not every few seconds.
If it realizes that the session has been closed, it uses something like "os.system("shutdown now -h")" and that´s it.
I was very grateful if anyone has any idea how i can work on my problem or where i might want to have a look at.
hhh