在 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?
在 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?
看来您想使用screen -L
日志记录或 tmuxshow-buffer
或pipe-pane
(或可能capture-pane
)。
Soupso通过命名管道获得了很好的结果。