This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
subject: Closing telnet session to UNIX box closes my program
 
Similar Threads
can I run telnet thru a java program?
How I connect to remote Unix Box from standalone java application?
Ending Telnet session kills the tomcat process I started
How to login to linux server using sockets
Can't connect to X11 window