clone_mqtt.sh 152 B

12345678
  1. #!/bin/bash
  2. mypath='dirname $(realpath $0)'
  3. set -m
  4. /usr/bin/mosquitto_sub -h banana -t "#" -v|while read line
  5. do
  6. ${mypath}/send_mqtt.sh ${line} &
  7. done