Skip to content

Instantly share code, notes, and snippets.

@loa
Created February 16, 2015 11:43
Show Gist options
  • Save loa/5859f017b198fdbd8081 to your computer and use it in GitHub Desktop.
Save loa/5859f017b198fdbd8081 to your computer and use it in GitHub Desktop.
Bash script logger
#!/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