Created
January 2, 2014 20:00
-
-
Save yfe404/8225653 to your computer and use it in GitHub Desktop.
Print the list of the files opened by a program during its execution
Usage : straceopen <program [args]>
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
#!/bin/sh | |
strace $* 2>&1 | grep "open" | cut -d "(" -f 2 | cut -d ")" -f 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment