<30>yos...@rostov:~> screen -d -r
 There are screens on:
         7614.pts-2.rostov       (Dead ???)
         12001.pts-4.tomsk       (Dead ???)
         11610.pts-12.naryanmar  (Dead ???)
 Remove dead screens with 'screen -wipe'.
 There is no screen to be detached.

Nice. Someone killed my screen at rostov. And it says there's a dead one at tomsk. Although I've just used one and it looked very lively. Well, what do you know, maybe I had two screens there. I do have two running directories there. OK, let's be friendly to the environment and follow screen's advice (I wonder why it doesn't do it itself though):

 <33>yos...@rostov:~> screen -wipe
 ...
 3 sockets wiped out.

OK.

 <1214>yos...@rostov:~> ssh tomsk
 <34>yos...@tomsk:~> screen -d -r
 There is no screen to be detached.
 <35>yos...@tomsk:~> screen -r
 There is no screen to be resumed.

How unpleasant. No more `screen -wipe`. /Now/ I am grateful that it doesn't bury the alleged bodies itself. Well, at least the process I ran under screen is still alive, which is still better than a bare ssh session...

Waitaminnit. What do you mean "the screen is dead and the process is alive"? The process should have been kill by a broken pipe.

 <54>yos...@tomsk:~> ps -fade | grep SCREEN
 yosefk   12001     1  0 Jan07 ?        00:00:15 SCREEN

Aha! So there's a screen all right. But the little screen doesn't notice the big SCREEN. Why? RTFM:

 <55>yos...@tomsk:~> man screen

 -d -r  ...
 -d -R  ...
 -d -RR ...
 -D -r  ...
 -D -R  ...
 -D -RR ...

OK. I think I'll pass at the moment. I have scripts to check the status of that process. So I don't lose /that/ much. I'd like to know WTF is going on though.

Reply via email to