Bash timeout function bert2002 15 years ago TIMEOUT=”60″ $MYPROGRAM >/dev/null & pid=$! sleep $TIMEOUT && kill -9 $pid >/dev/null 2>&1 && echo “$MYPROGRAM failed”