From dc839ca363364436d23b578fb8ed42e43ee4e0e9 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 17 Apr 2014 02:06:09 +0200 Subject: [PATCH] add snoopnotifications script --- tests/scripts/snoopnotifications.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tests/scripts/snoopnotifications.sh diff --git a/tests/scripts/snoopnotifications.sh b/tests/scripts/snoopnotifications.sh new file mode 100755 index 00000000..f764db8e --- /dev/null +++ b/tests/scripts/snoopnotifications.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ -z $1 ]; then + echo "usage $0 host" +else + (echo '{"id":1, "method":"JSONRPC.SetNotificationStatus", "params":{"enabled":"true"}}'; read) | nc $1 1234 +fi