I’d like to know if someone has tried logging their gnu-screen session to a logfile (other than the default screenlog.N where N is the session number).
I tried doing the following
~$ screen -L custom_screenlog -S test_session
but screen would terminate. It’s not also in the screen manual. Tried searching Google and I can’t seem to see an answer.
Thanks.
My 4.0.2 version of GNU screen has no argument to
-Lswitch. The log file is systematically namedscreenlog.0and created in the current directory.Then you may simply try:
Edit:
you can customize your
.screenrcfile, adding for instanceThis way log files may be stored in a predefined directory (
/tmpin this example)and may be named after logfile opening date