Can't type in commands after reattching to a screen session

by Allen   Last Updated October 19, 2019 14:00 PM

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.



Answers 2


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

Tom Shaw
Tom Shaw
May 30, 2011 07:39 AM

Hey so I am still having this problem? Does anyone have any solutions?

Anand
Anand
October 19, 2019 13:40 PM

Related Questions


Updated June 30, 2015 21:00 PM

Updated July 20, 2017 11:00 AM

Updated July 20, 2017 10:00 AM

Updated April 24, 2015 03:00 AM

Updated July 13, 2018 10:00 AM