Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

keep command running after closing ssh

# To start:
screen
# Start a new named screen session:
screen -S session_name
# To resume:
screen -r {pid}
# To kill:
screen -r {pid}
# Then Ctrl+a and type :quit
# To rename:
screen -S old_session_name -X sessionname new_session_name
 
PREVIOUS NEXT
Tagged: #command #running #closing #ssh
ADD COMMENT
Topic
Name
4+2 =