Resuming a process from SSH (console and X11)

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 SIGNED MESSAGE-----
Hash: SHA1

http://www.novell.com/communities/node/8560/ljdt-taking-advantage-screen

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

iQIcBAEBAgAGBQJKW6TzAAoJEF+XTK08PnB5r6EP+wQjg/pYIMJ5nM4rUrXu/HN1
TyxrljDv+DVZtHxMroV1joa7RwQj17xI8b0QAFU0cT/B2mPTr5YWYRug0GIKuvlx
5RK6b/8ocoFllOCcSJ3Xp4iaSvrr4rAqpWCRZxFYw0BSTc+o5tMxdibd8PC1v8HV
nHJFkuJEfSyQAWh5JE/Eavw25IYpxYufpQU6QifOXvV+ZsSxSsIsKx3KVwVNDoK7
AfIixzlCVTKyM1BkBh4IH7LxbwUrzBJzpMxloB23fiopkkqiZd3fFLSK2pXdDnmU
cozrkaW8xmr8b2rN5fIcAt0nV3p/YzQunFjW7G0Og3eW254y1vMAaWmCfk4Dof1g
L2qao7al0B2qEgFNSc0HuoYvd5nuDD+18F1mQb3kDtyiRvafKf8paLTF/gg2//VI
MUVIluvB/+fHIPGCJLobwgnRzMQyp1hR2a90wpwGmaBXXWWACdjxQ2wBVa+J+Zb3
PogUAjskECrbUNkYJQv/hsO57XD5Vk6lfzlSLtvBAsOQfQWHN445B+m7507AOiiM
+zJERywSf9E75Ownwmt9rHFi9p54l/iy871GNGhxhbpsiTVukgV4JKDkzraijWEx
VedyCle3BMXbWnneYFJ5hoy2+4reoTk5Dke1F2X38Rat5IXO1NzICqcwPLYcbJSH
2thVdWaDhqtiCaUstPgO
=OckI
-----END PGP SIGNATURE-----

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?