diff --git a/scripts/cmd.sh b/scripts/cmd.sh new file mode 100755 index 0000000..03c0860 --- /dev/null +++ b/scripts/cmd.sh @@ -0,0 +1,47 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "No toNode supplied" + exit 1 +fi +if [ -z "$2" ]; then + echo "No cmd supplied" + exit 1 +fi + +command=$2 + +IFS=',' read -r -a array <<<"$1" + +function sendMessage() { + cat >msg.yaml <