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
  asyncio: WebSocketClient:connection closed (ERR): sent 1011 Michel777 0 466 Feb-04-2025, 09:22 PM
Last Post: Michel777
  How to umount on a closed distro ebolisa 5 1,019 Jan-03-2025, 03:50 AM
Last Post: DeaD_EyE
  A question about 'Event loop is closed' fc5igm 3 4,887 Oct-01-2024, 09:12 AM
Last Post: skdaro
  [closed] check whether an integer is 32 or 64 bits paul18fr 4 4,980 May-27-2024, 04:55 PM
Last Post: deanhystad
  does not save in other path than opened files before icode 3 2,748 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 6,345 Jan-14-2022, 10:02 AM
Last Post: noahverner1995
  Rmarkdown opened by python code - errors Rav013 0 2,648 Apr-27-2021, 03:13 PM
Last Post: Rav013
  ValueError: I/O operation on closed file problem aliwien 0 2,669 Apr-23-2021, 05:50 PM
Last Post: aliwien
  Run an app in a standalone terminal and wait until it's closed glestwid 2 3,398 Aug-30-2020, 08:14 AM
Last Post: glestwid
  Inclusive (closed) range with float numbers mapg 4 5,907 Apr-27-2019, 09:09 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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