I can do this:
mkdir tmp
cd tmp
screen -L some_command
and I get a screenlog.0
file in the local directory.
But when I do this, no log exists:
screen -Logfile /tmp/log.txt
Giving a full filename does not work? What else would work?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
-L
and-Logfile
are two different options, and neither implies the other, so you still need to add-L
to tell screen to log to a file:screen -L -Logfile /tmp/log.txt