Terminal Message Output after Injecting Exec Command

#1

Is it possible to capture the terminal message returned once an exec command has been injected in Node Red?

0 Likes

#2

Do you mean you are using an exec node and you want to capture the output of the command?

The exec node has three outputs. The top output is the stdout of the command. The middle output is the stderr and the third output is the return code of the command. Does that give you what you want?

0 Likes

#3

I shall try them and see. Thank you

0 Likes

#4

When I connect a debug node I get no message out?

0 Likes

#5

Have you connected a debug node to each of the three outputs?
How have you configured the exec node?
Have you checked you are actually triggering the exec node?

0 Likes

#6

Also note that if you select Exec mode then you will get nothing till the command completes. If you want to see output whilst the command is still running then use Spawn mode.

0 Likes