source userpass ht=$1 while true do curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"snapshot\",\"coin\":\"KMD\",\"height\":$ht}" ht=$(( $ht + 100 )) echo next hight $ht sleep 6000 done