Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using CentOS 5, I have a screen session running and I often reattach to it after a day or two with the usual:

screen -r <sockname>

The session reattaches fine, and runs fine (I can see output from ongoing processes happening in the background) but I can't enter in any commands... Does anyone have any tips for getting screen sessions to start accepting your commands again?

Note that I can enter C- commands successfully, I.E. C-d detaches the session, C-[ enters copy mode - k,l then scroll through the buffer. I simply can't enter in any system commands, like ps etc.

share|improve this question

You may need to detach any existing sessions in order to take the write lock for the session. For example, screen -d -r

share|improve this answer
Thanks Tom, will give that syntax a try next time it occurs and update the question status. – Allen Jun 7 '11 at 4:34

Your Answer


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.