Python Forum
VMware View - Session opened/closed?
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VMware View - Session opened/closed?
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  This result object does not return rows. It has been closed automatically dawid294 6 1,088 Mar-30-2024, 03:08 AM
Last Post: NolaCuriel
  does not save in other path than opened files before icode 3 922 Jun-23-2023, 07:25 PM
Last Post: snippsat
Question How to get html information from a tab of my default browser opened with webbrowser? noahverner1995 2 4,513 Jan-14-2022, 10:02 AM
Last Post: noahverner1995
  A question about 'Event loop is closed' fc5igm 2 2,229 Oct-05-2021, 02:00 AM
Last Post: fc5igm
  Rmarkdown opened by python code - errors Rav013 0 2,096 Apr-27-2021, 03:13 PM
Last Post: Rav013
  ValueError: I/O operation on closed file problem aliwien 0 2,124 Apr-23-2021, 05:50 PM
Last Post: aliwien
  Run an app in a standalone terminal and wait until it's closed glestwid 2 2,536 Aug-30-2020, 08:14 AM
Last Post: glestwid
  Inclusive (closed) range with float numbers mapg 4 4,001 Apr-27-2019, 09:09 PM
Last Post: Gribouillis
  Powershell Session translation to Python; Session code seems to not work Maverick494 1 3,622 Jun-26-2018, 05:16 PM
Last Post: Maverick494
  Discord Bot doesnt work when opened with windows himdipie 0 2,235 Apr-15-2018, 04:48 PM
Last Post: himdipie

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020