Skip to content

Instantly share code, notes, and snippets.

@vwxyzjn
Created October 26, 2019 05:07
Show Gist options
  • Select an option

  • Save vwxyzjn/23208fb4f6012624c67107a747c4cc54 to your computer and use it in GitHub Desktop.

Select an option

Save vwxyzjn/23208fb4f6012624c67107a747c4cc54 to your computer and use it in GitHub Desktop.

SSH + Screen This one is not about AI, but about something extremely useful I learned today. Have you ever been running an experiment in a server through SSH and all of asudden the connecton drops? damn! you lose the experiment... try this:

  1. ssh to your server
  2. screen
  3. launch your experiment
  4. "Ctrl-a" "d"

now you can quit your ssh and the experiment keeps running in the server. Whenever you want to check how is it going, go and:

  1. screen -ls
  2. screen -r

boom! you are back in your experiment! Amazingly easy, and amazingly useful. Check the site from where I got the info, here: http://www.rackaid.com/resources/linux-tutorials/general-tutorials/using-screen/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment