# Exec command can be used to Stop executing python code using "Python Shell" Node

**URL:** <https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265>\
**Category:** Developing Nodes\
**Created:** [3 November 2020 08:40 UTC](https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265 "2020-11-03T08:40:42Z")\
**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:** [3 November 2020 08:43 UTC](https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265/2 "2020-11-03T08:43:46Z")

</div>

Hi, are you the same user as Sandy?

This thread is ALMOST identical to one less than a page down in the forum...

> [@Stop executing the python code using "Python Shell" Node](https://discourse.nodered.org/t/stop-executing-the-python-code-using-python-shell-node/35194):
>
> Hi All, I executed a python script(taken locally) using a python shell node in node-red. But As I am running Infinite Loop code I was unable to stop the execution. Please Help me out..?

---

_[View the full topic](https://discourse.nodered.org/t/exec-command-can-be-used-to-stop-executing-python-code-using-python-shell-node/35265)._
