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

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top