I am running a script in screen, which takes several days to run. Occasionally, I log back in to check the output, and I'd like to see the output during the times I did not have the screen attached. Is this possible?
1 Answer
Yes. screen
has a scroll-back buffer. You can move the view of the buffer after switching to copy mode: Ctrl+A, [. In the copy mode you can move up and down using cursor keys or PageUp, PageDown or alternatively using other keys. The copy mode can be closed by Esc. For details see:
-
You could pipe the output to a file. Then you can view the output at any time by opening the file in a editor. I often do this to keep track of a long script or process, while I'm doing something else. Feb 14, 2014 at 23:28