<div dir="ltr"><div><div>i logged in while numerous fscks (several on same disc) (including /) were running simultaneously (a mountall bug), ran ps|less (inside screen) to capture the evidence, but lost that login before telling less to write it out.  i logged in again, but in the meantime the fscks finished.  now, the prior screen, which is still running, is not listed in /run/screen (i'm guessing because it predated the initialization of /run), so even tho i specify SCREEN -D -RR, i just get a new screen session, not the old one.<br>

<br></div>how can i somehow either attach to the original screen which is still running, or prod that running copy of less to write out it's buffer?<br><br></div>i tried copying /run/screen/S-root/4951.pts-10.jocur (the more recent screen session) to /run/screen/870.pts-13.jocur, also tried values of pts-0 through pts-9 but none of them got me into screen.  no doubt more than just the name of that pipe is relevant.  how might i craft the right pipe to get me into that screen, or do you have a better idea?<br>

<br>  #00us#Dec06Fri16:20#Greg@jocur:/run/screen/S-root#  pg SCR<br>870 4951<br>USER      SESS TPGID  PGRP  PPID   PID  STARTED  NI WCHAN  STAT COMMAND<br>root      4951    -1  4951  4950  4951 16:20:06   0 poll_s Ss   SCREEN -O -d -RR -U -e^Bb<br>

root       870    -1   870     1   870 13:38:51   0 poll_s Ss   SCREEN -O -d -RR -U -e^Bb<br><div><div>  #00us#Dec06Fri16:20#Greg@jocur:/run/screen/S-root#  l.<br>prwx------ 1 root greg  0 2013-12-06 Fri 16:20:06 4951.pts-10.jocur|<br>

prwx------ 1 root greg  0 2013-12-06 Fri 16:00:32 870.pts-13.jocur|<br>  #00us#Dec06Fri16:20#Greg@jocur:/run/screen/S-root#  lt /dev/pts/*<br>c--------- 1 root root   5,  2 2013-12-06 Fri 13:37:34 /dev/pts/ptmx<br>crw--w---- 1 root tty  136,  6 2013-12-06 Fri 13:39:31 /dev/pts/6<br>

crw--w---- 1 root tty  136, 26 2013-12-06 Fri 13:39:36 /dev/pts/26<br>crw------- 1 root tty  136,  3 2013-12-06 Fri 13:43:20 /dev/pts/3<br>crw------- 1 root tty  136,  2 2013-12-06 Fri 13:46:08 /dev/pts/2<br>crw------- 1 root tty  136,  7 2013-12-06 Fri 14:17:12 /dev/pts/7<br>

crw--w---- 1 g    tty  136,  0 2013-12-06 Fri 15:41:20 /dev/pts/0<br>crw--w---- 1 root tty  136, 13 2013-12-06 Fri 16:04:40 /dev/pts/13<br>crw--w---- 1 g    tty  136, 10 2013-12-06 Fri 16:20:16 /dev/pts/10<br>crw------- 1 root tty  136,  5 2013-12-06 Fri 16:20:16 /dev/pts/5<br>

crw------- 1 root tty  136,  8 2013-12-06 Fri 16:20:16 /dev/pts/8<br>crw--w---- 1 root tty  136,  1 2013-12-06 Fri 19:37:43 /dev/pts/1<br>crw--w---- 1 root tty  136,  4 2013-12-06 Fri 19:37:44 /dev/pts/4<br></div></div></div>