Try:
screen -r 4951

*Jason Lindberg*
Systems Engineer - UNIX/Linux
(763) 355-2473


On Fri, Dec 6, 2013 at 4:41 PM, gregrwm <tclug1 at whitleymott.net> wrote:

> 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.
>
> 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?
>
> 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?
>
>   #00us#Dec06Fri16:20#Greg at jocur:/run/screen/S-root#  pg SCR
> 870 4951
> USER      SESS TPGID  PGRP  PPID   PID  STARTED  NI WCHAN  STAT COMMAND
> root      4951    -1  4951  4950  4951 16:20:06   0 poll_s Ss   SCREEN -O
> -d -RR -U -e^Bb
> root       870    -1   870     1   870 13:38:51   0 poll_s Ss   SCREEN -O
> -d -RR -U -e^Bb
>   #00us#Dec06Fri16:20#Greg at jocur:/run/screen/S-root#  l.
> prwx------ 1 root greg  0 2013-12-06 Fri 16:20:06 4951.pts-10.jocur|
> prwx------ 1 root greg  0 2013-12-06 Fri 16:00:32 870.pts-13.jocur|
>   #00us#Dec06Fri16:20#Greg at jocur:/run/screen/S-root#  lt /dev/pts/*
> c--------- 1 root root   5,  2 2013-12-06 Fri 13:37:34 /dev/pts/ptmx
> crw--w---- 1 root tty  136,  6 2013-12-06 Fri 13:39:31 /dev/pts/6
> crw--w---- 1 root tty  136, 26 2013-12-06 Fri 13:39:36 /dev/pts/26
> crw------- 1 root tty  136,  3 2013-12-06 Fri 13:43:20 /dev/pts/3
> crw------- 1 root tty  136,  2 2013-12-06 Fri 13:46:08 /dev/pts/2
> crw------- 1 root tty  136,  7 2013-12-06 Fri 14:17:12 /dev/pts/7
> crw--w---- 1 g    tty  136,  0 2013-12-06 Fri 15:41:20 /dev/pts/0
> crw--w---- 1 root tty  136, 13 2013-12-06 Fri 16:04:40 /dev/pts/13
> crw--w---- 1 g    tty  136, 10 2013-12-06 Fri 16:20:16 /dev/pts/10
> crw------- 1 root tty  136,  5 2013-12-06 Fri 16:20:16 /dev/pts/5
> crw------- 1 root tty  136,  8 2013-12-06 Fri 16:20:16 /dev/pts/8
> crw--w---- 1 root tty  136,  1 2013-12-06 Fri 19:37:43 /dev/pts/1
> crw--w---- 1 root tty  136,  4 2013-12-06 Fri 19:37:44 /dev/pts/4
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20131206/d81c96f5/attachment-0001.html>