Attach to a processes output for viewing

前端 未结 7 856
北荒
北荒 2020-12-12 08:26

How would I \'attach\' a console/terminal-view to an applications output so I can see what it may be saying?

How would I detach from an applications output without k

7条回答
  •  不思量自难忘°
    2020-12-12 09:14

    I was looking for this exact same thing and found that you can do:

    strace -ewrite -p $PID
    

    It's not exactly what you needed, but it's quite close.

    I tried the redirecting output, but that didn't work for me. Maybe because the process was writing to a socket, I don't know.

提交回复
热议问题