querySinglePointHistData.sh 552 B

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