lastknownhostips access
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
25b21ec33b
commit
e3debfa3fa
|
@ -8,10 +8,11 @@ steps:
|
|||
image: cburki/mosquitto-clients
|
||||
commands:
|
||||
- #mosquitto_sub -h raum.ctdo.de -t "homie/blinky1/\$localip" -C 1
|
||||
- rm -f lastknownhostips
|
||||
- cat hosts
|
||||
- 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 echo -n "$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," >>lastknownhostips; mosquitto_sub -h raum.ctdo.de -t "homie/$h/\$localip" -C 1 | tr -d '\n' >>lastknownhostips; done
|
||||
# - 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
|
||||
- cat lastknownips
|
||||
|
|
Loading…
Reference in New Issue