When I type screen -r I expect to either see: A list of screens to resume, or a message "There is no screen to be resumed."

Today, I see there is one screen, but I still get the message that there is no screen to be resumed:

[root@server chiliNUT]# screen -r
There is a screen on:
        27863.pts-1.server     (Attached)
There is no screen to be resumed.
[root@server chiliNUT]# screen -rx 27863
[detached]
[root@server chiliNUT]# screen -r
There is a screen on:
        27863.pts-1.server     (Attached)
There is no screen to be resumed.

Why is it reporting that the screen is attached? I just detached it on the line above ([detached])

share|improve this question
up vote 40 down vote accepted

As screen -r says, there is one screen, but it is attached. To resume it on your current terminal, you have to detach it from the other one first: screen -d -r 27863, see manpage -d.


Edit: use -d instead of -x.

share|improve this answer
1  
Why not use -x? – Alex78191 Dec 10 '17 at 12:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.