Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 file name?

like image 301
Justin Avatar asked Feb 22 '13 14:02

Justin


People also ask

How do you use logfile?

You can read a LOG file with any text editor, like Windows Notepad. You might be able to open one in your web browser, too. Just drag it directly into the browser window, or use the Ctrl+O keyboard shortcut to open a dialog box to browse for the file.


1 Answers

Probably the easiest way is to use the following:

screen -L -Logfile log_filename your_command 
like image 147
Nan Wang Avatar answered Sep 19 '22 13:09

Nan Wang