Cannot specify customized filename for output logging (-L flag)
Bug #1714182 reported by
Demon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
screen (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
The screen package needs to change the -L switch feature so that a screenlog.0 filename can be given a specific directory/filename output such as doing:
screen -L /tmp/screenlog.1 (2, 3, etc)
Otherwise in order to run multiple screens with -L they each have to be executed from different directories, because they'd all output to the same screenlog.0 file.
The only alternative workaround to this is doing:
screen -dmS workspace | tee screen.log
or
screen -dmS workspace && screen -S workspace -X stuff $'<command> | tee screen.log\n'
Conclusion, To recode the -L switch to allow to explicitly specify custom filename/directory location for screenlog.0 output ?
To post a comment you must log in.
Hi Ader,
IMHO that is not a bug in Ubuntu but an upstream feature request.
Thou there are certain workarounds [1] already that might be better then the | tee.
If really needed, having multiple screenrc files ready and pointing to either one defining the outputfile is rather close to what you want.
If -L really shall get an argument I'd really think you have to request (or contribute) so upstream.
[1]: https:/ /serverfault. com/questions/ 248193/ specifying- a-log-name- for-screen- output- without- relying- on-screenrc