From d187bd3b4805dcb3f9e1d6143ac1cd0531009868 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 19 May 2015 15:57:22 +0200 Subject: add support for executing external commands close #1 --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'README.md') 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 -- cgit v1.2.3-54-g00ecf