mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22:56 +00:00
correct the escape sequence inside code tags for mqtt/mosquitto_sub/README.md
This commit is contained in:
parent
92c530fe42
commit
96af14115c
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ git.centos.org has shifted to using [pagure](https://pagure.io/ "Pagure") to hos
|
||||||
|
|
||||||
There is an example of how to use mosquitto\_sub on that page, but I find the *-v* option then requires using only the second column in the log, so I like to take it out. Here is what I would use:
|
There is an example of how to use mosquitto\_sub on that page, but I find the *-v* option then requires using only the second column in the log, so I like to take it out. Here is what I would use:
|
||||||
|
|
||||||
`mosquitto\_sub --cafile ~/.centos-server-ca.cert --cert ~/.centos.cert --key ~/.centos.cert -h mqtt.git.centos.org -p 8883 --id` _<uniq-id>_` --disable-clean-session --keepalive -t git.centos.org/# >> `_<filepath>_`/mosquitto\_sub.log.txt`
|
`mosquitto_sub --cafile ~/.centos-server-ca.cert --cert ~/.centos.cert --key ~/.centos.cert -h mqtt.git.centos.org -p 8883 --id` _<uniq-id>_` --disable-clean-session --keepalive -t git.centos.org/# >> `_<filepath>_`/mosquitto_sub.log.txt`
|
||||||
|
|
||||||
Once you have the default log going, you can parse the log as json .. I like to use [jq](https://stedolan.github.io/jq/ "jq"). Here is an example *jq* query that will create an output that looks like this for _branches_ that begin with _c7_ in the log.
|
Once you have the default log going, you can parse the log as json .. I like to use [jq](https://stedolan.github.io/jq/ "jq"). Here is an example *jq* query that will create an output that looks like this for _branches_ that begin with _c7_ in the log.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue