I want to log multiple output of serial lines with screen. I use the following:

screen -L /dev/ttyUSB0 115200
screen -L /dev/ttyUSB0 115200

Screen logs the output in ONE single file screenlog.0 instead of two screenlog.X files.

The nodes are hanging on a server. I use screen and within screen the first command above. Then I open a further screen-window and start the second command. I didn't find any hint via Google.

migrated from serverfault.com Jul 27 '15 at 9:35

This question came from our site for system and network administrators.

  • What indication do you have that it would do screenlog.X? – mikeserv Jul 27 '15 at 9:41
  • @mikeserv: the output of both nodes were logged to screenlog.0 but I want the output to two different files f.e. screenlog.0 and screenlog.1 for further analysis. The X in screenlog.X is only a place holder. – user125243 Jul 28 '15 at 6:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy