System
This filter allows you to exec a command on the host machine. The received Message can be used to create the command to launch.
It supports Golang templates (only text.Template).
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
cmd | STRING | empty | command line to exec for each received Message (supports Golang templates) |
... | system(cmd="echo '{{ .author }} wrote {{ .main }}' >> logs.txt") | ...
Output
The propagated Message will contain the output of the command if it is provided, and it is not failed.
Examples
Soon…