summaryrefslogtreecommitdiffstats
path: root/execute/echo.sh
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 /execute/echo.sh
parent2e86d643dcae1edafa72c9ed1bca02bc85f6148d (diff)
downloadjournal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.gz
journal-notify-d187bd3b4805dcb3f9e1d6143ac1cd0531009868.tar.zst
add support for executing external commands
close #1
Diffstat (limited to 'execute/echo.sh')
-rwxr-xr-xexecute/echo.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/execute/echo.sh b/execute/echo.sh
new file mode 100755
index 0000000..15ca215
--- /dev/null
+++ b/execute/echo.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# (C) 2015 by Christian Hesse <mail@eworm.de>
+#
+# This software may be used and distributed according to the terms
+# of the GNU General Public License, incorporated herein by reference.
+
+while getopts "i:p:m:" opt; do
+ case ${opt} in
+ i)
+ IDENTIFIER="${OPTARG}"
+ ;;
+ p)
+ PRIORITY="${OPTARG}"
+ ;;
+ m)
+ MESSAGE="${OPTARG}"
+ ;;
+ esac
+done
+
+echo "IDENTIFIER: ${IDENTIFIER}"
+echo "PRIORITY: ${PRIORITY}"
+echo "MESSAGE: ${MESSAGE}"
+
+exit 0
+
+# vim: set syntax=sh: