Page 1 of 1

run extrnal command on complete

Posted: Mon Feb 21, 2022 9:17 am
by aihysp
hello i am using this to unrar anything that i download
"/usr/local/bin/unrar" x -ibck -inul "%F/*.r*" "%F/"

its working great but i want to send an MQTT to my homeatumation server also

what will be the syntex?

i have tried so many but nothing works

"/usr/local/bin/unrar" x -ibck -inul "%F/*.r*" "%F/"; mosquitto_pub -h localhost -t test -m "{\"value1\":20,\"value2\":$var1}"

trying to achive somthing like this