Last active
March 26, 2024 09:51
-
-
Save sandrotanner/9a91ea0e4bdb771c8fe6d30ed9f04a32 to your computer and use it in GitHub Desktop.
Log program output to syslog and custom file (with custom syslog tag)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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