Artificial intelligent assistant

GNU Screen: can not resume the screen from a broken remote session Sometimes the **SSH shell** featuring a **active`screen` session** to my remote server gets **broken** (internet line not very stable, for example) with the session still attached. Then I SSH again into the server, and **try to resume** the `screen` session: luis@Zarzamoro:~$ screen -r There is a screen on: 9166.pts-2.Zarzamoro (12/23/15 23:47:34) (Attached) There is no screen to be resumed. luis@Zarzamoro:~$ screen -r 9166.pts-2.Zarzamoro There is a screen on: 9166.pts-2.Zarzamoro (12/23/15 23:47:34) (Attached) There is no screen to be resumed matching 9166.pts-2.Zarzamoro. I don't know much about GNU screen. **Why** does this happen? Is it possible to **resume** this `scree`n session?

Two points:

* You do not have to specify the whole pid+session name (screen accepts a reasonable abbreviation).

* You may get better results with the `-x` option.




From the manual page:

> **`-r`**
> sessionowner/[pid.sessionname]’ Resume a _detached_ screen session.
>
> **`-x`**
> Attach to a session which is already _attached_ elsewhere (multi-display mode). Screen refuses to attach from within itself. But when cascading multiple screens, loops are not detected; take care.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 0203a078b099b649e14d18ce1a4726f5