[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

assignment from background process

From: grumpy
Subject: assignment from background process
Date: Fri, 24 Jan 2020 12:08:39 +0000
User-agent: Horde Application Framework 5

payload=$(mosquitto_sub -h mqtthost.grumpy-net -p 1883 -i you -t foo/bar) &
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 :)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]