#!/bin/bash if [ -z $3 ]; then echo "usage: $0 host deviceId stateTypeId" exit 1; fi cat <