0

I am running several Screen sessions in the same directory at the same time.

When the program in a certain session is completed, this session is terminated automatically. However, I need to check the output of the session. So I tried to use "screen -L" to keep a log. However, the outputs of all the sessions were logged into a single file, screenlog.0 (several lines from one session and then several lines from another session... which is impossible to read).

Is there a method to record different sessions to different log files?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Runner
  • 365
  • 1
  • 5
  • 21
  • Does this answer your question? *[Is it possible to name the 'screen' logfile from the -L flag?](https://stackoverflow.com/questions/15026184)* – Peter Mortensen Mar 25 '20 at 15:26

1 Answers1

1

You can, for instance, use the logfile command in screenrc.

Michael Krelin - hacker
  • 138,757
  • 24
  • 193
  • 173
  • Thannks! Could you please give me some details? I am really a newbie to Linux. – Runner Oct 11 '12 at 19:11
  • I'm not sure what you do and how and what is your ultimate goal, I can only suggest here that you try `man screen` and look if you wind something that suits your exact needs there. – Michael Krelin - hacker Oct 11 '12 at 19:24