confusion in attaching detaching screen on Ubuntu

Posted by Registered User on Server Fault See other posts from Server Fault or by Registered User
Published on 2011-03-02T20:50:18Z Indexed on 2011/03/02 23:26 UTC
Read the original article Hit count: 333

Filed under:
|

Hi,

screen -list  shows 

There are screens on:
    9531.pts-0.ubuntu   (03/02/2011 12:43:34 PM)    (Detached)
    2101.pts-0.ubuntu   (03/02/2011 12:39:17 PM)    (Attached)
    2219.pts-0.ubuntu   (03/02/2011 11:20:56 AM)    (Attached)
3 Sockets in /var/run/screen/S-bond.

but when I type

screen -r 2101.pts-0.ubuntu
There is a screen on:
    2101.pts-0.ubuntu   (03/02/2011 12:39:16 PM)    (Attached)
There is no screen to be resumed matching 2101.pts-0.ubuntu.

Here I can not get back the the screen 2101.pts-0.ubuntu and infact I get exited. Where as if I do

screen -r 9531.pts-0.ubuntu
[detached from 9531.pts-0.ubuntu]

then above you can see I went inside that session and came out and I can do it again and again.But with other sessions same is not the case? SO what mistake am I doing?

© Server Fault or respective owner

Related posts about ubuntu-10.04

Related posts about screen