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?
As you can see from
screen -list
, that screen session is currently attached. You cannot attach to it from somewhere else without detaching it first. You can do this by adding the-d
option, likescreen -d -r 2101.pts-0.ubuntu
. There is more information in the GNU Screen manual. Here is an excerpt:Call the doctor!