How can a process intercept stdout and stderr of another process on Linux?

前端 未结 8 596
离开以前
离开以前 2020-11-27 11:23

I have some scripts that ought to have stopped running but hang around forever. Is there some way I can figure out what they\'re writing to STDOUT and STDERR in a readable

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 11:34

    I'm not sure if it will work for you, but I read a page a while back describing a method that uses gdb

提交回复
热议问题