Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.