*: always backquote stdin, stdout and stderr (#9584)

This commit is contained in:
pixel
2022-12-04 08:53:34 +01:00
committed by GitHub
parent 5f7fd20ee2
commit ab7a36fbe6
165 changed files with 207 additions and 207 deletions

View File

@@ -19,10 +19,10 @@
`mosquitto_pub -t {{sensors/temperature}} -f {{data.txt}}`
- Send the contents of a file (`data.txt`), by reading from stdin and send the entire input as a message and publish it to `sensors/temperature` topic:
- Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic:
`mosquitto_pub -t {{sensors/temperature}} -s < {{data.txt}}`
- Read newline delimited data from stdin as a message and publish it to `sensors/temperature` topic:
- Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic:
`{{echo data.txt}} | mosquitto_pub -t {{sensors/temperature}} -l`