Skip to content

Instantly share code, notes, and snippets.

@htuscher
Created April 7, 2014 09:36
Show Gist options
  • Save htuscher/10017329 to your computer and use it in GitHub Desktop.
Save htuscher/10017329 to your computer and use it in GitHub Desktop.
Use strace to show files opened by all apache processes
#!/bin/bash
ps auxw | grep sbin/apache | awk '{print"-p " $2}' | xargs strace -e open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment