I have successfully used the screen utility to run my time consuming scripts when I am working on a server via ssh. However lately I have been running into a problem, I have found my script terminated mid-process with the following message on the screen log
: cannot connect to X server localhost:10.0 What could be the issue here? If it makes any difference I was connecting from OSX with XQuartz running, and ssh -Y to connect to a remote server running Ubuntu 16.04 LTS.
-Yoption tossh? Are you using the ssh connection to do anything other than run scripts within a remotescreensession? If your script needs to launchX11clients, you probably don't want to execute it within a (potentially) detachedscreensession.