【发布时间】:2011-08-31 17:19:17
【问题描述】:
可能重复:
How can a process intercept stdout and stderr of another process on Linux?
进程已经在运行,0、1、2都重定向到/dev/null,如何恢复stdout?
谢谢,
【问题讨论】:
可能重复:
How can a process intercept stdout and stderr of another process on Linux?
进程已经在运行,0、1、2都重定向到/dev/null,如何恢复stdout?
谢谢,
【问题讨论】:
正在分析...
可能性 1:您想要捕获被重定向的输出。你运气不好。
可能性 2:您想要捕获将被重定向的输出。调试注入并调用 dup2。
可能性3:你就是过程。也许试试 /dev/tty
.
【讨论】: