You may know to append an ampersand to a shell command so as to run a process in background. For example,
> java myprogram &
This command runs the Java program in background. However, the process will be halted when you log out the session. To overcome this, you can make use of the 'screen' command.
screen # start a virtual session which keeps itself alive even you log out
Ctrl-A + ? # show help
Ctrl-A + d # detach from the screen
screen -r # re-attach to the previous screen
Reference here: http://jmcpherson.org/screen.html
No comments:
Post a Comment