This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Closing telnet session to UNIX box closes my program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Closing telnet session to UNIX box closes my program" Watch "Closing telnet session to UNIX box closes my program" New topic
Author

Closing telnet session to UNIX box closes my program

bala_nilavai
Greenhorn

Joined: Jul 03, 2002
Posts: 1
I telnet to a UNIX box and start my program as a background process (./myprogram.sh &). As long as I keep the telnet session open, my program works fine. But if I close the telnet session, my program also gets killed.
Is there a way, I close the telnet session and still have by program running in the background ?
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
See docs for nohup:
man nohup
G.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Closing telnet session to UNIX box closes my program
 
Similar Threads
How to login to linux server using sockets
can I run telnet thru a java program?
Can't connect to X11 window
Ending Telnet session kills the tomcat process I started
How I connect to remote Unix Box from standalone java application?