是否可以通过-L标志来命名“屏幕"日志文件? [英] Is it possible to name the 'screen' logfile from the -L flag?

查看:62
本文介绍了是否可以通过-L标志来命名“屏幕"日志文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行带有-L标志的屏幕后,该文件名为'screenlog.0'创建并写入所有输出(很棒),但是我将运行几个Screen会话,我需要用唯一的编号标识日志.可以更改日志文件名吗?

Upon running Screen with the -L flag, a file called 'screenlog.0' is created and all output written to it (which is great), but I will be running several Screen sessions and I need to identify the logs with a unique number. Is it possible to change the log file name?

推荐答案

您可以编辑.screenrc文件并添加如下内容:

You can edit your .screenrc file and add something like this:

日志文件/tmp/myownlog

logfile /tmp/myownlog

也可以在 在不依赖于.screenrc 的情况下为屏幕输出指定日志名称.

It is also answered at Specifying a log name for screen output without relying on .screenrc.

这篇关于是否可以通过-L标志来命名“屏幕"日志文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆