Skip to content

Instantly share code, notes, and snippets.

@hjr3
Last active January 18, 2018 15:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hjr3/5137762 to your computer and use it in GitHub Desktop.
Save hjr3/5137762 to your computer and use it in GitHub Desktop.
Handy script to get strace to attach to all php-fpm workers
netstat -apn | grep $outgoing_ip_address
strace $(for P in $(pidof php-fpm); do echo -n "-p $P "; done;) -o strace -ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment