¿Cómo vuelvo a conectarme a una sesión de pantalla cuando el socket está allí, pero la pantalla no lo usa?

¿Cómo vuelvo a conectarme a una sesión de pantalla cuando el socket está allí, pero la pantalla no lo usa?

He vistoesta preguntayesta pregunta, pero ninguno de ellos se aplica a mí. Tengo el archivo socket en /var/run/screen y lo poseo, pero screen -list no lo reconoce y no me permite conectarme. ¿Cómo puedo recuperar esta sesión?

tom@host~ $ ls /var/run/screen/S-tom/
total 0
prw------- 1 tom people 0 Jul  2 19:07 3954.pts-0.host

tom@host ~ $ screen -list
No Sockets found in /home/tom/.screen.

Respuesta1

Puede configurar la SCREENDIRvariable de entorno en /var/run/screen. Entonces deberías poder listar y conectarte.

Suponiendo shun shell compatible:

export SCREENDIR="/var/run/screen"

Deman 1 screen

ENVIRONMENT
   COLUMNS        Number of columns on the terminal (overrides termcap entry).
   HOME           Directory in which to look for .screenrc.
   LINES          Number of lines on the terminal (overrides termcap entry).
   LOCKPRG        Screen lock program.
   NETHACKOPTIONS Turns on nethack option.
   PATH           Used for locating programs to run.
   SCREENCAP      For customizing a terminal's TERMCAP value.
   SCREENDIR      Alternate socket directory.
   SCREENRC       Alternate user screenrc file.
   SHELL          Default shell program for opening windows (default "/bin/sh").
   STY            Alternate socket name.
   SYSSCREENRC    Alternate system screenrc file.
   TERM           Terminal name.
   TERMCAP        Terminal description.
   WINDOW         Window number of a window (at creation time).

información relacionada