# Passing an input to exec node which execute a python script

**URL:** <https://discourse.nodered.org/t/passing-an-input-to-exec-node-which-execute-a-python-script/5763>\
**Category:** General\
**Created:** [13 December 2018 15:52 UTC](https://discourse.nodered.org/t/passing-an-input-to-exec-node-which-execute-a-python-script/5763 "2018-12-13T15:52:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 December 2018 16:06 UTC](https://discourse.nodered.org/t/passing-an-input-to-exec-node-which-execute-a-python-script/5763/2 "2018-12-13T16:06:03Z")

</div>

Please see this FAQ entry for how to share your flow. You can edit your previous post to correct it so that it becomes importable.  
In the meantime you can append the payload to the command in the exec node so you can pass the string to your script if that is what you mean. If that isn't what you mean then please explain further.

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

_[View the full topic](https://discourse.nodered.org/t/passing-an-input-to-exec-node-which-execute-a-python-script/5763)._
