Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandrotanner/9a91ea0e4bdb771c8fe6d30ed9f04a32 to your computer and use it in GitHub Desktop.
Save sandrotanner/9a91ea0e4bdb771c8fe6d30ed9f04a32 to your computer and use it in GitHub Desktop.
Log program output to syslog and custom file (with custom syslog tag)
myscript.sh 2>&1 | logger -s -t MYLABEL 2>> log.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment