Skip to content

Instantly share code, notes, and snippets.

@varnav
Created April 1, 2020 13:30
Show Gist options
  • Save varnav/7aafe0887d39542c9498356456102592 to your computer and use it in GitHub Desktop.
Save varnav/7aafe0887d39542c9498356456102592 to your computer and use it in GitHub Desktop.
Bash log to file
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