#!/bin/bash i="0" while [ $i -lt 400 ] do # irun -gui -64bit -r work.chk_100:htwtestbench -input vcd_wave.tcl gmake TEST=txc_simple BATCH=YES SEED=$1 echo "try number "$i sleep 1 grep -e "Couldn.t acquire license" -e "Unable to checkout license" irun.log || exit i=$[$i+1] done