I'm trying to parse the output of a screen session from a script.
The man page of screen says I can use the command logfile
, but gives no indication of the syntax to use when I launch screen non-interactively.
I would like to do something like this:
screen -L -d -m executable.app
But instead of having the output written to screenlog.0
, have it written to a file of my choice.