Spying process output by PID
06 Mar 2018 | linuxTo 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
.
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