LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Screen and other problems. (https://www.linuxquestions.org/questions/linux-software-2/screen-and-other-problems-26962/)

bakuretsu 08-01-2002 07:59 AM

Screen and other problems.
 
I'll bet everyone runs screen at least once in a while, right? I use screen all the time because I like to watch the output of my AIM bot and my Infobot and keep a bX session open, and I'm always running between home and work and using different SSH logins.

Sometimes, though, the SSH connection gets killed (for whatever reason). Normally logging back in and re-attaching the screen is all I need to do...
Code:

me@mybox:~$ screen -r
But sometimes it just hangs at that point and is never able to re-attach. I have tried such things as...
Code:

me@mybox:~$ screen -D -r <screen id>
me@mybox:~$ screen -D -RR <screen id>

But no luck :( I usually end up having to kill -9 all the programs I know were running under screen and starting over with a fresh screen. Does anyone have any insights into this?

-Aaron

naz 08-02-2002 10:26 AM

This is usually due to a hung screen still attached. You can kill the screen ( ps auxfwww ) will give you a hint as to which screen this is. You can now kill the bash/sh session which has the hung screen "running" (it'll be the parent process to that particular screen).

This should allow you to reattach to the session (can't remember which one, a bit of trial and error is required). If this fails, you can try killing the screen session itself (not the programs running under it)

naz


All times are GMT -5. The time now is 02:40 AM.