queryClientTimeRange.sh 259 B

123456789101112131415
  1. #!/bin/bash
  2. HOST=127.0.0.1
  3. PORT=8080
  4. echo start to query
  5. BEGIN="2021-10-27 10:00:00"
  6. END="2022-12-29 23:00:00"
  7. BEGIN=${BEGIN/ /%20}
  8. END=${END/ /%20}
  9. echo start:$BEGIN
  10. echo end:$END
  11. url="http://$HOST:$PORT/query?start=$BEGIN&end=$END"
  12. echo url:$url
  13. curl $url