Running applications remotely with ‘screen’


If you need to run an experiment on a remote machine, but you cannot be logged in via ssh for the whole time for any reason (maybe you need to go home in between), use the screen command.
When screen is called, it creates a single window with a shell in it. You can run your application in this new shell and then leave it by pressing “Ctrl+a Ctrl+d“. This will detach the screen. You can then even end your ssh session and log out. The next time you connect to the remote machine you can go back to the shell with the command “screen -r”. Your application will still be running.

screen can do much more than this, try ‘man screen‘ for a better overview or see this online manpage.

There is also a quick tutorial here.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: