Created
April 7, 2014 09:36
-
-
Save htuscher/10017329 to your computer and use it in GitHub Desktop.
Use strace to show files opened by all apache processes
This file contains hidden or 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
#!/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