Update actions.md (#1507)

Add example of constants for parameters of executeCommandLine() Action

Signed-off-by: Ross Kennedy rossko@culzean.clara.co.uk
pull/1512/head
Ross Kennedy 2021-03-14 15:07:28 +00:00 committed by GitHub
parent b4761979a0
commit 5c8980964f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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