Last active
December 4, 2015 19:12
-
-
Save dserodio/f556743b882551794be8 to your computer and use it in GitHub Desktop.
Hook into stdout and stderr of a running process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo strace -p $PID -e trace=write -e write=1,2 | |
# To log started and elapsed times, add -ttT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment