# Pass input parameters to a script using pythonshell node

**URL:** <https://discourse.nodered.org/t/pass-input-parameters-to-a-script-using-pythonshell-node/56432>\
**Category:** General\
**Created:** [10 January 2022 23:10 UTC](https://discourse.nodered.org/t/pass-input-parameters-to-a-script-using-pythonshell-node/56432 "2022-01-10T23:10:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![miinch](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@miinch](https://discourse.nodered.org/u/miinch)\
**Post date:** [15 January 2022 20:45 UTC](https://discourse.nodered.org/t/pass-input-parameters-to-a-script-using-pythonshell-node/56432/3 "2022-01-15T20:45:54Z")

</div>

Hi, thank you for your reply, I' tried with the exec node and that brought some other issues, I've tried using pythonshell and **sys.argv[1]** to pass the arguments, but found some other problems that I'm addressing in a new post.  
[Pass input parameters to a phytonshell node using sys.argv: IndexError: list index out of range](https://discourse.nodered.org/t/pass-input-parameters-to-a-phytonshell-node-using-sys-argv-indexerror-list-index-out-of-range/56709)  
Thank you so much for your help.

---

_[View the full topic](https://discourse.nodered.org/t/pass-input-parameters-to-a-script-using-pythonshell-node/56432)._
