|
From: | grumpy |
Subject: | Re: assignment from background process |
Date: | Fri, 24 Jan 2020 12:28:40 +0000 |
User-agent: | Horde Application Framework 5 |
Quoting address@hidden:
payload=$(mosquitto_sub -h mqtthost.grumpy-net -p 1883 -i you -t foo/bar) & pid=$! mosquitto_pub -h mqtthost.grumpy-net -p 1883 -i me -t foo/bar -m "hello" wait ${pid} echo "payload => ${payload}" this is my program mosquitto_sub blocks and waits for mosquitto_pub to publish it's payload i'm having a bit of trouble wrapping my head around what is going on obviously this is not correct a little clarification if you please :)
apologizes mosquitto_sub line should be mosquitto_sub -h mqtthost.grumpy-net -p 1883 -i you -C 1 -t foo/bar
[Prev in Thread] | Current Thread | [Next in Thread] |