0

在 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?
4

1 回答 1

0

看来您想使用screen -L日志记录或 tmuxshow-bufferpipe-pane(或可能capture-pane)。

Soupso通过命名管道获得了很好的结果。

于 2019-05-05T18:52:32.680 回答