#!/bin/bash ROOT=$(cd `dirname $0`/../../; pwd) TOPIC=test URL=http://127.0.0.1:8081/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