diff options
Diffstat (limited to 'bin/log_notifications.sh')
| -rwxr-xr-x | bin/log_notifications.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/log_notifications.sh b/bin/log_notifications.sh new file mode 100755 index 0000000..2b187db --- /dev/null +++ b/bin/log_notifications.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +echo "${@}" \ + | sed -r 's/IT Message from (\w+)\s*(.+) emblem-important CRITICAL/\1> \2/' \ + >> "/tmp/notifications.log" |
