#!/bin/bash ROOT=$(cd `dirname $0`/../../; pwd) TOPIC=测试2 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 $ROOT/build/curl -d 'hello world 1' -h $URL