#! /bin/sh # # to reproduce rand() values # export SRAND=987654321 r="" if [ -n "$1" ]; then r="$1"; SRAND=$((SRAND+r)); fi cmd="./QT $r > QT$r.out" echo "$cmd" eval "$cmd"