Export content of screen daemon to file
You probably want to do something like:
screen -p 0 -X hardcopy
this generates a file hardcopy.0
with the content of the screen session.
The argument to -p
determines which session.
The files are dumped in screens current working directory or to the directory set set with the hardcopydir
command. Check the screen configuration file for hardcopydir (/etc/screenrc
).