Hello,
I currently have a server on which I have to run some applications 24/7 from SSH. One is the F.E.A.R. Combat dedicated server and another is an RPG test bot written in Java/AWT.
My objective is to start a process from the SSH console, keep it running after I log out, then being able to “reconnect” to it and get its console output and/or X11 window.
I found no information about this. If I run the program with final &, I’ll be sure it will keep running after logout, but when I login again the only thing I can do is to kill it. This is going to be critical with the X11 application (I have tunnel enabled), because none of the programs have been designed to be daemonized, and even trying to run the FEAR server with “> logfile.log” to keep track of its output doesn’t works (blank log file).
Reconnecting X11 (after backgrounding or whatever) is not possible, as far
as I know, unless you have some sort of X session that is maintained, for
example via VNC. Using just the command line you can forward X to your
client but once you disconnect it dies so make sure you only background or
use screen for processes that are not X-ish.
Good luck.
djechelon wrote:
> Hello,
> I currently have a server on which I have to run some applications 24/7
> from SSH. One is the F.E.A.R. Combat dedicated server and another is an
> RPG test bot written in Java/AWT.
>
> My objective is to start a process from the SSH console, keep it
> running after I log out, then being able to “reconnect” to it and get
> its console output and/or X11 window.
>
> I found no information about this. If I run the program with final &,
> I’ll be sure it will keep running after logout, but when I login again
> the only thing I can do is to kill it. This is going to be critical with
> the X11 application (I have tunnel enabled), because none of the
> programs have been designed to be daemonized, and even trying to run the
> FEAR server with “> logfile.log” to keep track of its output doesn’t
> works (blank log file).
>
> Any ideas?
> Thank you in advance.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
For the console output, I’d look at ‘screen’, written for just this type of process. For the X output, any window would have a hard time re-connecting; might it be possible to open a new window?