screen

Occasinally I want to keep processes running in Linux after I have logged out of a session.  This can be done by making the process run in the background by putting the "&" sign after the process you want executed and then pressing pound.  This gives no interactivity though and the process must run on its own.  There's also the command
nohup
which runs the process in the background and then prints out all output to a specified file, but again, no interactivity. 
I discovered the command
screen
which allows one to keep a shell process running but attach and detach it from different login sessions, thus allowing interactivity at any time.  There are several commands that have to be learned but they're very simple and provides a great degree of freedom with the Linux operating system.  A basic introduction to GNU screen can be found here.

No comments: