Python Forum

Full Version: VMware View - Session opened/closed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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