From 5c8980964f8ae55141c62afcd1f4f86b33d6ef88 Mon Sep 17 00:00:00 2001 From: Ross Kennedy Date: Sun, 14 Mar 2021 15:07:28 +0000 Subject: [PATCH] Update actions.md (#1507) Add example of constants for parameters of executeCommandLine() Action Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk --- addons/actions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/actions.md b/addons/actions.md index 4c56e9ffd..62da8e978 100644 --- a/addons/actions.md +++ b/addons/actions.md @@ -84,6 +84,10 @@ executeCommandLine("path/to/my/script.sh", itemState1, itemState2); // When you need the output in your further rule processing var ScriptResponse = executeCommandLine(Duration.ofSeconds(60), "path/to/my/script.sh", itemState1, itemState2); + +// Space separated constants must be given as separate parameters as well +// e.g. path/to/your/script.sh xyz fred.file +var ScriptResponse = executeCommandLine(Duration.ofSeconds(60), "path/to/your/script.sh", "xyz", "fred.file"); ``` ### HTTP Actions