0

I am logging in to a remote linux box using xlaunch with gnome-session --display=$DISPLAY. If I start a background process, is there a way to have it stay alive (keep running) when I exit Xming so that it completes or still shows up when I log-in again?

Benjamin
  • 183
  • 8

1 Answers1

1

No; when your X session goes away all programs using it lose their connection to the X server, which typically causes them to exit. It is possible to arrange for programs that require neither X11 nor a terminal to be persistent, but if it needs either of those then it cannot survive loss of access to the Display.

If you want a persistent X session, take a look at VNC. I've used X11VNC for this but there are other ways to set up persistent sessions.

geekosaur
  • 7,175
  • 1
  • 20
  • 19
  • Yes, for persistent sessions you need a persistent *X* server. *Xvnc* is a great candidate. – yrk May 11 '12 at 19:49