# Exec node not working as expected

**URL:** <https://discourse.nodered.org/t/exec-node-not-working-as-expected/96461>\
**Category:** General\
**Tags:** exec, flowfuse\
**Created:** [7 April 2025 21:28 UTC](https://discourse.nodered.org/t/exec-node-not-working-as-expected/96461 "2025-04-07T21:28:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 April 2025 21:43 UTC](https://discourse.nodered.org/t/exec-node-not-working-as-expected/96461/2 "2025-04-07T21:43:30Z")

</div>

Try this: [Exec node - help with how it spawns - #3 by Steve-Mcl](https://discourse.nodered.org/t/exec-node-help-with-how-it-spawns/95957/3)

Note: since it is a device agent instance, put the env in the device settings -\> env vars and replace the 1000 with the Sid of the account that runs the device agent

 ![Screenshot_20250407-224727](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e4f70a6daafa528e231b1ce96435e775f7b1d37.png)

---

_[View the full topic](https://discourse.nodered.org/t/exec-node-not-working-as-expected/96461)._
