From a29c8fe55d9cca241f5d718708734fd9d9f4e5e1 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 27 Mar 2018 21:13:13 +0200 Subject: [PATCH] add iscloudconnected script --- tests/scripts/iscloudconnected.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tests/scripts/iscloudconnected.sh diff --git a/tests/scripts/iscloudconnected.sh b/tests/scripts/iscloudconnected.sh new file mode 100755 index 00000000..b422dc9f --- /dev/null +++ b/tests/scripts/iscloudconnected.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ -z $1 ]; then + echo "usage $0 host" +else + (echo '{"id":1, "method":"JSONRPC.IsCloudConnected"}'; sleep 1) | nc $1 2222 +fi