Created
April 1, 2020 13:30
-
-
Save varnav/7aafe0887d39542c9498356456102592 to your computer and use it in GitHub Desktop.
Bash log to 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
LOG_FILE=/root/installer.log | |
exec > >(tee -a ${LOG_FILE} ) | |
exec 2> >(tee -a ${LOG_FILE} >&2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment