From 92b393d3df255cb8a2349d832c9539918553ae39 Mon Sep 17 00:00:00 2001 From: dceejay Date: Thu, 8 Jan 2015 12:35:42 +0000 Subject: [PATCH] really enforce binary for exec node stdout when required. --- nodes/core/core/75-exec.html | 1 + nodes/core/core/75-exec.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/75-exec.html b/nodes/core/core/75-exec.html index 567a34c19..8d1279cb1 100644 --- a/nodes/core/core/75-exec.html +++ b/nodes/core/core/75-exec.html @@ -42,6 +42,7 @@

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

Spawn only expect one command word, with all extra parameters to be comma separated and passed as the append.

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

+

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