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

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

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?

October 19, 2019 13:40 PM

Related Questions

Open Google Chrome on Centos 7 and screenshot it

Updated June 30, 2015 21:00 PM

Linux - show screen logs on multiple screens?

Updated July 20, 2017 11:00 AM

Recover a running script from a terminal session

Updated July 20, 2017 10:00 AM

screen -r and screen -list only show last screen

Updated April 24, 2015 03:00 AM

Screen active but no sockets in /var/run/screen

Updated July 13, 2018 10:00 AM