aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-05-19 15:57:22 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-05-19 15:57:22 +0200
commitd187bd3b4805dcb3f9e1d6143ac1cd0531009868 (patch)
treef6ab52824b9f7543fc88452f408a51795fce9fcd /README.md
parent2e86d643dcae1edafa72c9ed1bca02bc85f6148d (diff)
downloadjournal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.gz
journal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.zst
add support for executing external commands
close #1
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3c4f4d1..52b97a7 100644
--- a/README.md
+++ b/README.md
@@ -61,16 +61,26 @@ Be warned: This can flood your disktop with notifications.
* *-r REGEX*: This add a regular expression match for the message field.
* *-t SECONDS*: seconds to show the notification, 0 is forever
* *-v*: verbose output, can be specified multiple times
+* *-x EXECUTABLE*: execute EXECUTABLE
+* *-X EXECUTABLE*: execute EXECUTABLE, do not show notification
The screenshot shown above resulted from this command:
> journal-notify -m SYSLOG_IDENTIFIER=sshd -e -r "^(error:|Accepted)"
-i security-high
+The command specified by `-x` is called with three options. Make sure
+your executable understands these options:
+
+* *-i*: syslog identifier
+* *-p*: priority
+* *-m*: message
+
Additionally example desktop files are installed to
`/usr/share/journal-notify/examples`. You should copy them to
`~/.config/autostart/` to enable autostart or create your own desktop files
-there.
+there. Example execute scripts are installed to
+`/usr/share/journal-notify/execute/`.
### Upstream