1
votes

I have a ruby script that I want to run 24/7 on my vps( Debian Squeeze ).

Now to run that script I have to open a new ssh session with putty and start script by console. When I close my console the script process also closes.

How can make my script running standalone?

2

2 Answers

0
votes

You could use something like tmux or screen and then run your script from within that. You only need to connect once, create a session and then you can close the connection without stopping the script. To gain control of your script you will need to reconnect and reattach to your previous session. See the tmuy or screen homepages for more information.