Created
March 24, 2019 06:18
-
-
Save miguelmota/48a62676d56ce033eb1b131be31fa16e to your computer and use it in GitHub Desktop.
Bash exec append stdout and stderr to log file
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
# append both stdout and stderr to script log in right order | |
exec >> >(tee -a script.log) 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment