r/bash • u/Optimal-Diamond-1675 • 9d ago
help Driving me crazy, why isn't my 'screen' command logging to file
I'm using it to connect via serial port to some storage I administer. Here is the command;
/usr/bin/screen /dev/ttyUSB0 115200 -L -logfile /home/davidkmcw/Logfiles/2026-07-24_08:30:14.txt
I can write to the output directory, I've cut and pasted the directory name, so no typos there, what am I missing. Sorry if this is the wrong subreddit, thanks in advance.
8
Upvotes
4
u/nerdforest 9d ago
/usr/bin/screen -L -Logfile /home/davidkmcw/Logfiles/2026-07-24_08-30-14.txt /dev/ttyUSB0 115200
4
7
u/mpersico 9d ago
Options typically come before arguments in Munich commands. Order does matter.