Improve everyday.

Spying process output by PID

|

To spy the stdout and stderr of a process, run:

sudo strace -s9999 -e write -p <PID>

This can be useful when a script is not run by you and you want to get the stderr.

Comments