# How to trigger a Node-RED flow from a shell script

**URL:** <https://discourse.nodered.org/t/how-to-trigger-a-node-red-flow-from-a-shell-script/67208>\
**Category:** General\
**Created:** [1 September 2022 08:03 UTC](https://discourse.nodered.org/t/how-to-trigger-a-node-red-flow-from-a-shell-script/67208 "2022-09-01T08:03:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![HonestJohn61](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/honestjohn61/32/51533_2.png) [@HonestJohn61](https://discourse.nodered.org/u/HonestJohn61)\
**Post date:** [1 September 2022 13:09 UTC](https://discourse.nodered.org/t/how-to-trigger-a-node-red-flow-from-a-shell-script/67208/3 "2022-09-01T13:09:31Z")

</div>

Cool! Thanks @Colin. I've just checked the GET http request out and it's very simple. Since I'm using Ubuntu on an RPi4, curl was already available. MQTT would have involved a 4Mb download of which I'd only be using a tiny part, so that doesn't make sense.

This approach almost solves the first half of [my problem](https://discourse.nodered.org/t/controlling-spotifyd-via-dbus-mpris/67159), facilitating detection that the Spotifyd Spotify Connect device has started playing. I think I've also found the solution to the second half too - just need to piece it together and it'll be sorted.

Thanks again

---

_[View the full topic](https://discourse.nodered.org/t/how-to-trigger-a-node-red-flow-from-a-shell-script/67208)._
