Pass arguman to exec node to run python script

How I can pass input as input arguments to python script run command in exec node with msg.payload?
for exampe I want run python script with this command:
/usr/bin/python3 test.py 1 2

The Exec node has an option to add msg.payload to the command, so if you arrange for msg.payload to contain the string "1 2" then that will get added to the command. Often the easiest way to build the payload with the parameters is to use a template node, though that depends on how the data are available.

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