Created
June 26, 2014 19:11
-
-
Save pihentagy/504d99e334ce21c342c0 to your computer and use it in GitHub Desktop.
Bash command trace to file
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
# bash -x to file | |
exec 99>/tmp/mylogfile | |
BASH_XTRACEFD=99 # magic bash environment variable | |
set -o xtrace # start tracing from here onward |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment