#!/usr/bin/env bash #host=39.104.80.229 host=127.0.0.1 days=1 pointIndex=1 echo "----test query range days:$days" beginDate="2021-07-01 00:00:00" echo beginDate:beginDate #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S") endDate="2021-07-02 00:00:00" echo endDate:$endDate java -cp ./lib/influxdb.jar demo.query.histQuery.flow.QuerySinglePointHistData \ --host $host --pointNamePrefix pointName1_ --pointIndex $pointIndex \ --beginDate "$beginDate" --endDate "$endDate" \ --showQueryResult 0 2>&1 | tee -a ./log/influxdb/out.log