4

I was unable to resume my screen session this morning, even after I killed the old screen -r session.

svtbuild@dvm-2:~/rfs$ screen -r 17757.pts-0.dvm-2 There is a screen on: 17757.pts-0.dvm-2 (11/27/2012 04:49:19 PM) (Attached) There is no screen to be resumed matching 17757.pts-0.dvm-2. 

After waiting for a while I was able to resume. How can I do this more reliably?

2
  • 2
    From the screen manpage: screen -D -R. Commented Dec 10, 2012 at 15:47
  • 2
    @ott-- If this is the solution, can you post it as an answer with a short explanation of the flags? Commented Dec 10, 2012 at 16:19

1 Answer 1

9

From the screen manpage:

screen -D -R Attach here and now. In detail this means: If a session is running, then reattach. If necessary detach and logout remotely first. If it was not running create it and notify the user. 

As mentioned for the options -D -RR, unless you know the status of your session(s), you should check it with screen -list.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.