if the process is a for nodejs, and it may be your intention since you originally posted this on stackoverflow. I was originally searching for this question myself. I found pm2 and it is amazing. The other answers may help for general putty but if it is node specific this is by far the best answer, as there is built in monitoring and the setup is simply a
$ npm install pm2 -g
$ cd yourappdirectory
"PM2 is a production process manager for Node.js applications with a built-in load balancer. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks.
Starting an application in production mode is as easy as:"
$ pm2 start yourappname.js
"using the save and then freeze command you enable the processes to autostart on reboot"
$ pm2 save
$ pm2 freeze
for monitoring its
$ pm2 monit
and restarts
$ pm2 restart yourappname
also for direct logging information
$ pm2 logs
I now can easily run two putty windows instead of using my digialocean browser window (which I couldnt scroll up on); For more info see the main github
https://github.com/Unitech/pm2
its amazing.
the link does not work anymore – Malky.Kid – 2018-11-16T22:46:24.693
The process is running now ,is it work for that process?I am asking because the process is on the middle and i do not want to restart it now – None – 2010-01-16T15:18:52.083
+1 for mentioning my undisputed favourite command line tool. It's a gem in situations like this. – Noufal Ibrahim – 2010-01-16T15:41:46.820
@Noufal, totally! @prakash, you need to run screen before you can start any processes – ziya – 2010-01-16T15:48:52.507
If you want to connect to several machines it can even be a nice idea to run several screens inside the first screen so you just have to connect to one screen to get access to all your running remotes. – None – 2010-01-16T17:26:34.147