Here’s a few patterns I use to send a bash script’s output to a log file,to syslog, or as an email notification.

Source: Bash Output Patterns – Wood’s Words

Was this post helpful?