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