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:
...
- 05-05-2009 #1Just 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
- 05-05-2009 #2Linux 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
- 05-05-2009 #3Just 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
- 05-05-2009 #4Just Joined!
- Join Date
- May 2009
- Posts
- 10
- 05-05-2009 #5Just 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
- 05-05-2009 #6Linux 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.
- 05-06-2009 #7Just Joined!
- Join Date
- May 2009
- Posts
- 10
Thanks for that - works a charm - great package


Reply With Quote
