#!@KSH@ # runs a program N times, passing numbers 0..N-1 as the last arg and ignoring exit value N=$1 shift 1 prog="$1" shift 1 otherargs="$*" i=0 while [[ $i -lt $N ]] ; do ${TS_BUILD_DIRECTORY}/bin/watchdog 300 5000 ${prog} ${otherargs} $i let i="$i + 1" done exit 0