Skip to content

Instantly share code, notes, and snippets.

@dserodio
Last active December 4, 2015 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dserodio/f556743b882551794be8 to your computer and use it in GitHub Desktop.
Save dserodio/f556743b882551794be8 to your computer and use it in GitHub Desktop.
Hook into stdout and stderr of a running process
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