Is there a way to take a "screenshot" of linux screen command. In other words can "screen -r" command to be called with the same behaviour as "top -b -n 1" - print contents once and exit.
Background - I have a screen process that's running on my server. I want to be able to show it's contents in web for example. Or take a snapshot and pass it to a script once in a while.
Maybe if there is a way to capture current console screen it'll work in screen.