# Getting Continuous Output from Python Script in Node-RED

**URL:** https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327
**Category:** Developing Nodes
**Created:** [3 February 2021 18:16 UTC](https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327 "2021-02-03T18:16:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hkayan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hkayan/32/42713_2.png) [@hkayan](https://discourse.nodered.org/u/hkayan)
#### Post date: [3 February 2021 18:16 UTC](https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327/1 "2021-02-03T18:16:20Z")

</div>

Hello,

Sorry the question might be so trivial, but I could not make it work, and I am not getting any errors, so couldn't fix the issue.

I have a python3 script located at **/home/pi/Zigbee\_v1.py**. The script gets data from Zigbee device, when I run the script itself I get data without any problems. I believe in **Node-RED** , I should be able to do this by using **exec node** without any problems. I am able to run an example non-continuous python script without any issues.

How exactly I should configure the **exec node** so I can achieve what I want?  
The continuous generated data example if needed: `From 0013A200411111E >> 23.00`

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 February 2021 18:42 UTC](https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327/2 "2021-02-03T18:42:41Z")

</div>

This would be more suited to the node-red-node-daemon node. And don’t forget to add -u to the python call to ensure it is unbuffered

---

<div class="post-metadata">

### Author: ![hkayan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hkayan/32/42713_2.png) [@hkayan](https://discourse.nodered.org/u/hkayan)
#### Post date: [3 February 2021 18:59 UTC](https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327/3 "2021-02-03T18:59:59Z")

</div>

@dceejay Thank you so much. The **daemon node** works without any issues.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 February 2021 19:00 UTC](https://discourse.nodered.org/t/getting-continuous-output-from-python-script-in-node-red/40327/4 "2021-02-17T19:00:03Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
