Trigger File from Noderedd

Hi all,

I would like to trigger a command prompt script in raspberry pi using nodered flow...Is there any node available to trigger it??

Do you mean you want to execute a command? If so you can use the Exec node. If you mean you want to bring up a terminal window that is more problematic.

Might be worth looking at the work @BartButenaers has been doing for 'xterm'.

xterm

When you want to use the new xterm node, keep in mind that it is in early beta phase! Had a lot of 'constructive' feedback about my first version, and I'm completely redesigning it (to move it to the sidebar panel). It is now only a matter of (free) time ...

I've found it very useful in sorting out a network issue between a RPi and a remote MySQL server.

1 Like

Have added "allow script to be executed from Node-RED" on the xterm node's todo list...

The Exec node is what's required here. Please don't divert the thread.

3 Likes

@Benazir,
If you want to execute the script i background, then my xterm node won't be a solution. I only open a connection to the backend when the flow editor is open. I guess you need to use the Exec node in those cases...

1 Like

sure will try it out.

Thank you