Skip to content

Instantly share code, notes, and snippets.

@wiedzmin
Forked from mdub/syslog-injection.sh
Created November 27, 2017 11:55
Show Gist options
  • Save wiedzmin/2f4f2143a0dd14bcc9811d5fc35f9af4 to your computer and use it in GitHub Desktop.
Save wiedzmin/2f4f2143a0dd14bcc9811d5fc35f9af4 to your computer and use it in GitHub Desktop.
Redirect STDOUT and STDERR into syslog, using "logger", and bash process substitution
# Redirect STDOUT/STDERR into syslog
exec > >(logger -p user.info) 2> >(logger -p user.warn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment