From 81e125b7bab7fd8aab8cd1ce7c72453c4798502c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 5 Oct 2015 21:41:53 +0100 Subject: [PATCH] add bit more help to exec node Point out that parameters with spaces should be quoted --- nodes/core/core/75-exec.html | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes/core/core/75-exec.html b/nodes/core/core/75-exec.html index 9360e2301..e334a94d4 100644 --- a/nodes/core/core/75-exec.html +++ b/nodes/core/core/75-exec.html @@ -45,6 +45,7 @@

By default uses exec() which calls the command, then gets a callback on completion, returning the complete result in one message, along with any errors.

Optionally can use spawn() instead, which returns the output from stdout and stderr as the command runs (usually one line at a time). On completion it then returns a return code (on the 3rd output).

The optional append gets added to the command after the msg.payload - so you can do things like pipe the result to another command.

+

Parameters with spaces should be enclosed in quotes - "This is a single parameter"

If stdout is binary a buffer is returned - otherwise returns a string.