Bash - Log

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU)

Table of Contents

1 - About

Log - Logging in bash

2 - 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
Advertising