Update actions.md (#1507)
Add example of constants for parameters of executeCommandLine() Action Signed-off-by: Ross Kennedy rossko@culzean.clara.co.ukpull/1512/head
parent
b4761979a0
commit
5c8980964f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue