Jump to content
  • Advertisement
Sign in to follow this  
matt_j

SSH - small question

This topic is 5219 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
It depends... one way is to use nohup, which simply disconnects the program from the terminal and keeps it going.

An alternative (specifically for interactive programs) is to use "screen" (if installed), which has the advantage that you can ssh back in later, and see what it's doing.

Read the man pages for them both, obviously.

Mark

Share this post


Link to post
Share on other sites
screen is awesome! i use it very often. here's a good tutorial:

http://www.cumbria.lug.org.uk/index.php?id=6

Share this post


Link to post
Share on other sites
Does screen take up another pts device. For example, if you are logged in to pts/2 and you simply do a "csh" at the prompt you'll still be on device pts/2. If you are at the console and open up a new termainl then you get another device pts/3. If you screen, are you still pts/2 or pts/3? I'll have to try screen later but was just curious. You have a potential of leaving a session open a long time which is another reason why I'm asking. If so, root should be able to kill it no matter who ran it right?

Share this post


Link to post
Share on other sites
screen takes up its own pty, which is allocated when screen starts. That pty remains the same no matter how many times the screen session is detached and reattached.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!