Two echos
continuous-integration/drone/push Build was killed Details

This commit is contained in:
starcalc 2022-08-30 19:17:34 +02:00
parent 634f4f3be8
commit 25b21ec33b
1 changed files with 4 additions and 3 deletions

View File

@ -7,10 +7,11 @@ steps:
- name: fetch ips - name: fetch ips
image: cburki/mosquitto-clients image: cburki/mosquitto-clients
commands: commands:
- #mosquitto_sub -h raum.ctdo.de -t "homie/blinky1/\$localip" -C 1
- cat hosts - cat hosts
- for h in $(cat hosts); do echo $h; echo ${h}; done - for h in $(cat hosts); do echo $h; echo $h; done
- for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n'; done >lastknownips - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t "homie/$h/\$localip" -C 1 | tr -d '\n'; done >lastknownips
- for h in $(cat hosts); do echo "${h},$(mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n')"; done >lastknownhostips - for h in $(cat hosts); do echo -n "$h,"; mosquitto_sub -h raum.ctdo.de -t "homie/$h/\$localip" -C 1 | tr -d '\n'; done >lastknownhostips
# - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n'
# - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' >lastknownip # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' >lastknownip
- cat lastknownips - cat lastknownips