I'm now facing this situation: I'm running several Matlab instances on a computation server (server OS: Xubuntu 14.04, my local machine OS: Ubuntu 14.04). I used NoMachine to connect to the server. NoMachine usually works fine but last time, NoMachine froze and I had to force close NoMachine. When I restarted the NoMachine and connected back to the server, I found all windows/GUI of my Matlab instances disappeared. They are now running in the background, as I can see them in top, and they are still consuming a fair amount of CPU resources. Plus, I still can observe the data processing output in the output folder I directed Matlab to save the processed data, so I can safely say they are running fine in the background. However, I lost all window/GUI of all Matlab instances.
How can I reclaim these window/GUI? More specifically, I want to restore this window of the matlab instance running in the background.
This is the Matlab GUI I want to reclaim
I can see the PID of Matlab from top. So, does there exist some built-in terminal command like setWindowToFront(PID) that helps me to reclaim the lost windows by PID? Preferably built-in command because I am not privileged to install any package/application on the school server machine.
ps. I can't afford to kill the matlab instance and restart matlab, because the computation takes one month to finish, and I'm just halfway done now.
ps. bg or fg command can't help, they show "no jobs"
ps. the windows/GUI can't be in other workspaces because I have just one workspace.
ps. I didn't launch matlab via terminal in the first place. I launched matlab by mouse clicking.
Many thanks!
wmctrl
then runwmctrl -l
see if the windows still listed (ie, window manager is aware of them) – user.dz Jan 22 '16 at 22:09apt-cache depends wmctrl
. I wrote it as answer. If hidden windows are not listed, not sure how nomachine works, but expect it may open a session with different DISPLAY. – user.dz Jan 23 '16 at 18:20