Why isn’t screen saving my serial session to a log file?

0
2
Asked By VelvetPanda47 On

I'm using screen to connect to a serial port for a storage system I administer, but the session isn't being logged. I can write to the target directory, and I've verified the path, so I'm wondering what I'm missing. This is the command I tried:

`/usr/bin/screen /dev/ttyUSB0 115200 -L -logfile /home/davidkmcw/Logfiles/2026-07-24_08:30:14.txt`

1 Answer

Answered By MapleOrbit9 On

Put screen’s options before the serial device and baud-rate arguments. Try:

`/usr/bin/screen -L -Logfile /home/davidkmcw/Logfiles/2026-07-24_08-30-14.txt /dev/ttyUSB0 115200`

The option order matters here. The colon in the filename isn’t the issue on Linux.

VelvetPanda47 -

That fixed it. I didn’t realize screen was so particular about the order of its command-line options.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.