Let Program Run After Closing Remote Console

R

Robert Mazur

Argh. I can not find this in the archives.

I am secure shelling into a headless remote Linux box and starting a
Java app that has a java.util.Timer, executing a method every 2
minutes. When I close the remote session to the Linux box, the Java
app closes too.

How can I get that Java app to stay up even after I log out of the
Linux box? Is that OS thing, or something I can do in the Java app to
keep it running?

Thanks,
Rob
 
C

Christophe Vanfleteren

Robert said:
Argh. I can not find this in the archives.

I am secure shelling into a headless remote Linux box and starting a
Java app that has a java.util.Timer, executing a method every 2
minutes. When I close the remote session to the Linux box, the Java
app closes too.

How can I get that Java app to stay up even after I log out of the
Linux box? Is that OS thing, or something I can do in the Java app to
keep it running?

Thanks,
Rob

nohup should do the trick.

You'll need to type "nohup java ...."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top