ways to continue run command after shell exit
Tue, 06/30/2009 - 10:46 — sandip-
screen:
screen -dmS <screen_name> <command>
exitnohup <command> &
exitecho "<command>" | at now
exit<command> &
disown -h
exitShare screen session
Tue, 12/16/2008 - 23:45 — sandip-
Start screen using the command:
$ screen -S <SessionName>The -S switch gives the session a name, which makes multiple screen sessions easier to manage.
Allow multiuser access in the screen session:CTRL-A
:multiuser onCTRL-A
:acladd <guest_user>$ screen -x <host_user>/<SessionN ame>Frequently used SCREEN reference commands
Sun, 09/05/2004 - 00:02 — sandip# open screen session screen # list screen sessions screen -ls # reattach to screen session screen -r <name of screen session> # attach to a not detached session screen -x <name of screen session> # detach from unattached session screen -d Note: ^A = Ctrl-a (Press the "a" key while holding down Control key) detach from screen session attached to ^A d # open another session ^A c list the screen windows ^A w # print screen and save a hardcopy ^A h # go to next window ^A n # go to previous window ^A p # lock screen ^A x