Bash - Log

Table of Contents

About

Snippet

  • redirect all output to log file and stdout placed in the same location of the script
exec > >(tee -i /myLog.log)
exec 2>&1

Powered by ComboStrap