Created
August 5, 2020 20:20
-
-
Save sandorkazi/cdded14fb3f3f8378535bf9e842d10b8 to your computer and use it in GitHub Desktop.
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/bash | |
exec 3>&1 4>&2 | |
trap 'exec 2>&4 1>&3' 0 1 2 3 | |
exec 1>log.out 2>&1 | |
# Everything below will go to the file 'log.out': | |
set -o xtrace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment