12345678910111213 |
- #!/bin/bash
- ROOT=$(cd `dirname $0`/../../; pwd)
- TOPIC=test
- URL=http://127.0.0.1:9051/pub?topic=$TOPIC
- echo url: $URL
- DATE=$(date "+%Y-%m-%d-%H_%M_%S").$((`date "+%-N"`/1000000))
- echo date: $DATE
- MSG="{\"msg\":\"realtime message\", \"date\":\"$DATE\", \"lantency\":600}"
- echo MSGS: $MSG
- # curl -d "$MSG" $URL
- DATE_STRING="date='$DATE'"
- $ROOT/build/bat POST $URL msg="realtime message" $DATE_STRING lantency=600
|