Opened 10 years ago

Last modified 10 years ago

#264 assigned enhancement

[REQUEST] Windows Named Pipes / Unix Socket function "list_all_commands SERVER_ID"

Reported by: Tobias Göbel Owned by: Tobias Göbel
Priority: minor Milestone:
Component: Client Keywords: pipe socket start_session
Cc:

Description

There should be an option to Query all commands (programs) on remote server. I had a hard way finding the UUID for my program to start the program with:

Window-Switch-Pipe.exe "start_session 'SERVER_ID','COMMAND_UUID'"

Change History (3)

comment:1 Changed 10 years ago by Tobias Göbel

Just to give you a clue how to workaround the problem:

SERVER_ID is best taken from client config directory from winswitch ( Windows: %appdata%\Window-Switch\client\servers Linux ~/.winswitch/client/server )
There is a file for each Server with the ID in the name ("SERVER-ID.wsw") the part after the dash is the ID from the given Server.

COMMAND_UUID is best taken from the remote machine. Start the program from your client (leave it open!!!) and log into you server. navigate to the server sessions config directory (~/.winswitch/server/sessions there are subdirectorys named after the DISPLAY from the session. You don't need to know the DISPLAY of the session (if you know it, just open the directory and look inside of the config.txt and search for command_uuid="UUID") simply type grep -i "command_uuid" -R * wich search all files for "command_uuid" if only one session is activly open on the remote machine, just one command_uuid will have a UUID, and this is your UUID. If there are more sessions open, you have to try a litle bit to find "your" UUID as there is no way telling the name of the programm with this UUID.

EDIT: Just realized there is a simple way to tell if it is "your" UUID. Just look for command:"YOUR_COMMAND_HERE"

Last edited 10 years ago by Tobias Göbel (previous) (diff)

comment:2 Changed 10 years ago by Tobias Göbel

Owner: set to Kubax
Status: newassigned

comment:3 Changed 10 years ago by Tobias Göbel

Owner: changed from Kubax to Tobias Göbel
Note: See TracTickets for help on using tickets.