在Ubuntu系统上运行的Python脚本如何读取在screen会话中运行的程序的标准输出?
screen
## Now inside screen session...
./run_something
## Detach from screen...
python readScreenStdout.py <--- can this script read the output to the screen session?发布于 2019-05-06 02:52:33
您似乎想要使用screen -L日志记录,或者tmux show-buffer或pipe-pane (也可能是capture-pane)。
苏普索在via a named pipe上取得了很好的效果。
https://stackoverflow.com/questions/55978182
复制相似问题