Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Screen is a bit like a window manager for consoles. I use it to start multiple (software) servers without daemon mode. I can then switch between their outputs with screen.

Screen also detaches the console from your ssh session. In my case this means that the servers keep running if I loose my ssh connection to the (hardware) server.

It's a very handy tool and definitely belongs in the articles list of tools.



    screen -d -m processName
is practically the easiest way to run and daemonize a process.


    nohup processName


But then the output goes into a black hole after you close your shell


You can always redirect stdout/stderr to a file, e.g. nohup someapp > someapp.log


The output goes into nohup.out automatically.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: