openhab-docs/_addons_transformations/exec
Kai Kreuzer f1727cae7b
updated generated content
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-10-18 17:08:32 +02:00
..
readme.md updated generated content 2017-10-18 17:08:32 +02:00

readme.md

id label title type description since install
exec Exec Exec - Transformation Services transform Execute an external program, substituting the placeholder `%s` in the given command line with the input value, and returning the output of the external program. 2x auto

{% include base.html %}

Exec Transformation Service

Execute an external program, substituting the placeholder %s in the given command line with the input value, and returning the output of the external program.

The external program must either be in the executable search path of the server process, or an absolute path can be used.

Example

With the command line

/bin/date -v1d -v+1m -v-1d -v-%s

return a string showing the last weekday of the month.

input output
fri Fri 31 Mar 2017 13:58:47 IST