#!/bin/bash n=9999 for(( i =1; i<=100;i++)) do /root/testProgram $n sleep 5 n=$((n+1)) done
REFER: How to increment a variable in bash?