Created
December 10, 2018 06:51
-
-
Save hardiksondagar/2524d1fdabc59fd5d675a5aa036a2029 to your computer and use it in GitHub Desktop.
Shell script write output to syslog
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
#!/bin/bash | |
readonly SCRIPT_NAME=$(basename $0) | |
echo "Write to syslog" | logger -p user.notice -t $SCRIPT_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment