statisticLoop.sh 261 B

1234567891011121314151617
  1. #!/bin/bash
  2. ROOT=$(cd `dirname $0`/../../; pwd)
  3. source $ROOT/shell/manage/common.sh
  4. #sleep second
  5. sleepTime=1
  6. i=1
  7. count=100
  8. while(($i<$count))
  9. do
  10. echo [$i]
  11. curl http://$HOST:$PORT/api/v1/manage/statistic
  12. echo "end"
  13. i=$(($i+1))
  14. sleep $sleepTime
  15. done