Justin Justin - 1 year ago 55
Linux Question

Is it possible to name the 'screen' logfile from the -L flag?

Upon running screen with the -L flag, a file called 'screenlog.0' is created and all output written to it (which is great), but I will be running several screen sessions and I need to identify the logs with a unique number. Is it possible to change the log name?

Eun Eun
Answer Source

You can edit your .screenrc file and add something like this

logfile /tmp/myownlog

Edit: already answered: http://serverfault.com/questions/248193/specifying-a-log-name-for-screen-output-without-relying-on-screenrc