I am running a detached screen
session, and running a command into it with screen -X
, like so:
screen -S $SESSION -X <command>
This works fine, though I would like to be able to catch the output of the command without entering the screen. Is there some way to, from the command line, dump the history?
As a workaround, I tried to turn on the log for the session by doing
screen -L -S $SESSION -X <command>
but it does not seem to create a log file.
So, in summary, is it possible to dump the screen history for a running detached screen session or is it possible to turn on and off logging for a running detached session?