Find the answer to your Linux question:
Results 1 to 7 of 7
OK I'm on my Debian VPS and I'm in Putty - I open an application "Opensim.exe" it is running OK. Two things I can't get straight in this befuddled brain: ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    10

    putty exiting

    OK I'm on my Debian VPS and I'm in Putty - I open an application "Opensim.exe" it is running OK.

    Two things I can't get straight in this befuddled brain:

    How do I get out (close the Putty session) and leave the application running on the VPS - can I just close the session and it will keep running?

    If that is the case (and I hope it is),next time I go in (ie. new Putty session) how do I get back to where I was without having to restarting the application?



    Hope someone can help - thanks

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    When you log out of a ssh session you are closing the shell you were running. The best thing to do is have a look at screen. When you connect with Putty to the ssh session, launch a screen session immediately. You can then launch your application (assuming you aren't running a graphical app with X forwarding) and then disconnect from the screen session using Ctrl+A Ctrl+D.

    When you connect next time you can jump back into the screen session and see how it's doing but it also has the benefit of working from any machine including the local one. Screen will even let you share out one session with other users

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    10
    OK - I guess the command is screen - give it a go - situation is that the VPS is meant to be running the application 24 hours but I don't want my home computer on all the time.

    Thanks - give it a try

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    10
    Quote Originally Posted by bigtomrodney View Post
    The best thing to do is have a look at screen. When you connect with Putty to the ssh session, launch a screen session immediately.)
    How do I launch a screen session - is it a package I have to download? I've tried 'screen but it is not recognised?

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    10
    Answered my own question - great thanks for that

    $ apt-get install screen

    or

    $sudo apt-get install screen

  6. #6
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Just back to you now. Have you figured out the workings of screen? When you detach you can logout of the ssh session completely and have your own PC shut down. Then you can reattach to that screen session whenever you ssh back into the box.

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    10
    Thanks for that - works a charm - great package

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...