while [ 1 ]; do for i in {0..5}; do sudo ./prog $i sleep 0.5 done done