[英]How can Python Read the Stdout of a Detached screen Session in Ubuntu/Linux?
如何在Ubuntu系统上运行的Python脚本读取在screen
会话中运行的程序的Stdout?
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
logging,或tmux show-buffer
或pipe-pane
(或可能是capture-pane
)。
Soupso 通过命名管道获得了良好的结果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.