diff --git a/packages/node_modules/@node-red/nodes/core/function/90-exec.html b/packages/node_modules/@node-red/nodes/core/function/90-exec.html index 9f026448c..ea988a84a 100644 --- a/packages/node_modules/@node-red/nodes/core/function/90-exec.html +++ b/packages/node_modules/@node-red/nodes/core/function/90-exec.html @@ -41,8 +41,8 @@
- - + +
@@ -60,7 +60,7 @@ append: {value:""}, useSpawn: {value:"false"}, timer: {value:""}, - windowsHide: {value:false}, + winHide: {value:false}, oldrc: {value:false}, name: {value:""} }, @@ -97,11 +97,11 @@ }); $("#node-input-addpay-cb").trigger("change") - - if (this.windowsHide === "true" || this.windowsHide === true) { - $("#node-input-windowsHide").prop("checked",true); + + if (this.winHide === "true" || this.winHide === true) { + $("#node-input-winHide").prop("checked",true); } else { - $("#node-input-windowsHide").prop("checked",false); + $("#node-input-winHide").prop("checked",false); } }, oneditsave: function() { diff --git a/packages/node_modules/@node-red/nodes/core/function/90-exec.js b/packages/node_modules/@node-red/nodes/core/function/90-exec.js index 8d5fdf296..cf4168ae8 100644 --- a/packages/node_modules/@node-red/nodes/core/function/90-exec.js +++ b/packages/node_modules/@node-red/nodes/core/function/90-exec.js @@ -34,8 +34,8 @@ module.exports = function(RED) { this.timer = Number(n.timer || 0)*1000; this.activeProcesses = {}; this.oldrc = (n.oldrc || false).toString(); - this.execOpt = {encoding:'binary', maxBuffer:RED.settings.execMaxBufferSize||10000000, windowsHide: (n.windowsHide === true)}; - this.spawnOpt = {windowsHide: (n.windowsHide === true) } + this.execOpt = {encoding:'binary', maxBuffer:RED.settings.execMaxBufferSize||10000000, windowsHide: (n.winHide === true)}; + this.spawnOpt = {windowsHide: (n.winHide === true) } var node = this; if (process.platform === 'linux' && fs.existsSync('/bin/bash')) { node.execOpt.shell = '/bin/bash'; } diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/function/90-exec.html b/packages/node_modules/@node-red/nodes/locales/en-US/function/90-exec.html index bf0eac3ec..0a9f509bf 100644 --- a/packages/node_modules/@node-red/nodes/locales/en-US/function/90-exec.html +++ b/packages/node_modules/@node-red/nodes/locales/en-US/function/90-exec.html @@ -73,6 +73,7 @@

The returned payload is usually a string, unless non-UTF8 characters are detected, in which case it is a buffer.

The node's status icon and PID will be visible while the node is active. Changes to this can be read by the Status node.

+

The Hide console option will hide the process console normally shown on Windows systems.

Killing processes

Sending msg.kill will kill a single active process. msg.kill should be a string containing the type of signal to be sent, for example, SIGINT, SIGQUIT or SIGHUP. @@ -80,5 +81,4 @@

If the node has more than one process running then msg.pid must also be set with the value of the PID to be killed.

If a value is provided in the Timeout field then, if the process has not completed when the specified number of seconds has elapsed, the process will be killed automatically

Tip: if running a Python app you may need to use the -u parameter to stop the output being buffered.

-

The Hide windows option can be set to hide shell windows under Windows. This option will only affect Windows operating systems.

diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json index d559ad712..89bab6407 100755 --- a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json @@ -199,7 +199,7 @@ "stdout": "stdout", "stderr": "stderr", "retcode": "return code", - "windowshide": "Hide windows" + "winHide": "Hide console" }, "placeholder": { "extraparams": "extra input parameters"