Saturday, April 25, 2009

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:

5) screen -ls
6) 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/

No comments:

Post a Comment