Last active
February 28, 2018 21:11
-
-
Save cbilgili/082bf17792d4b7d148fa35c9a6c76703 to your computer and use it in GitHub Desktop.
screen ssh long running commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You want to be using GNU Screen. It is super awesome! | |
ssh [email protected] | |
screen #start a screen session | |
run-a-long-process | |
CTRL+a , d to detatch from your screen session | |
exit #disconnect from the server, while run-a-long-process continues | |
When you come back to your laptop: | |
ssh [email protected] | |
screen -r #resume the screen session | |
Then check out the progress of your long-running process! | |
You can quit that screen without attaching to it. First, find its session and then quit it: | |
screen -ls | |
screen -X -S [session # you want to kill] quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment