#!/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 <