Home » Technical » Screen for linux how did I not know about this

Screen for linux how did I not know about this

thanks to my friend Gabriella Davis for the heads up on this awesome linux tool

I was having issues with the Sametime TURN server timing out due to my linux session dying or timing out and Gab suggested to look up the screen command.

It is a simple yet affective tool which is implemented usually by default on a linux server that allows you to reconnect to a screen initiated session

you simply enter the command screen from your linux servers command line – the remote session may look like nothing has happened but you are now connected via screen.

carry on as you would normally – if you are disconnected or timed out – log back on the remote linux machine and enter the command screen -ls

[root@myserver bin]# screen -ls
There is a screen on:
        25755.pts-0.myserver       (Detached)
1 Socket in /var/run/screen/S-root.

 

to reconnect the session enter the command

screen -r session info

for example

screen -r 25755.pts-0.myserver

and you are reconnected

if you want to exit the screen session type exit and you will see [screen is terminating]

Excellent little tool .. thanks again Gabriella for the heads up on this :)

Tags:,

3 Responses

  1. David Leedy says:

    Screen rocks. It’s really good for long running stuff. I THINK but I’m not sure that Daniel nashed’s linux startup script for domino uses it was well.
    There’s a decent tutorial here I think: http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to

    also there’s another linux program I’ve NOT figured out yet but have heard about. TMUX. My impression is this is like screen on steroids where you can get multiple virtual screens going on 1 physical screen at the same time. Kinda like windows for the linux console I guess.
    http://tmux.sourceforge.net/

  2. Neat tip, thanks Sharon!

    PS. Great to see you back blogging!

  3. ekkehard says:

    Thanks for sharing Sharon…
    Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© Social Shazza
Shaz theme - Based on iFeature by Cyber Chimps