在 Bash 脚本中,我使用“screen -L”以彩色记录执行的命令。例如:
screen -L tree
然后我们读取日志文件less -R。
less -R
执行此脚本时,其他屏幕可能正在运行,因此我们不知道哪个 screenlog.* 包含我们的输出。我不能要求用户自定义他/她的.screenrc.
.screenrc
有没有办法在命令行上指定日志名称或读取特定.screenrc命令?
command-line-interface logging color gnu-screen
color ×1
command-line-interface ×1
gnu-screen ×1
logging ×1