Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing telnet session to UNIX box closes my program

 
bala_nilavai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See docs for nohup:
man nohup
G.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic