Created
February 16, 2015 11:43
-
-
Save loa/5859f017b198fdbd8081 to your computer and use it in GitHub Desktop.
Bash script logger
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 | |
exec 1> >(logger -s -t $(basename $0)) 2>&1 | |
echo "hello world" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment