How to identify the virtual workspace from remote terminal
by pan64 from LinuxQuestions.org on (#596NW)
Hi,
I have a gui (MATE desktop) with several different workpsaces. I started a gnome-terminal (or something similar) on every workspace and usually they will have 5-10 tabs. Usually I log into another hosts in every shell (mainly using the same host and username).
These remote hosts are just headless servers, no X installed, but for example gvim can be started (using ssh with -X).
gvim is in general used the same way as the terminal, I have only one window with several tabs on every workspace.
And now comes the question, how can I execute gvim on that remote host to find the correct workspace?
currently gvim --servername <name> --remote-tab <filename> is used, but I don't really know how can I find the server name I need.


I have a gui (MATE desktop) with several different workpsaces. I started a gnome-terminal (or something similar) on every workspace and usually they will have 5-10 tabs. Usually I log into another hosts in every shell (mainly using the same host and username).
These remote hosts are just headless servers, no X installed, but for example gvim can be started (using ssh with -X).
gvim is in general used the same way as the terminal, I have only one window with several tabs on every workspace.
And now comes the question, how can I execute gvim on that remote host to find the correct workspace?
currently gvim --servername <name> --remote-tab <filename> is used, but I don't really know how can I find the server name I need.