From: Griffin, P. J. <gr...@su...> - 2000-11-06 20:58:47
|
In case anyone is interested, and I'm sure there are better ways, here is how I load tests into TCS on my AIX unix box: $ cat ~/bin/load_test.ksh #!/bin/ksh set -x function load { export EDITOR="cat $1 >" { echo dt $1 echo ct $1 if [[ -n $2 ]] ; then echo dts $1 $2 echo at $1 $2 fi echo quit } | tcs } series="" while getopts ":s:" opt; do case $opt in s ) series=$OPTARG ;; \? ) print "usage: load_test.ksh [-s [series name]] files..." esac done shift $(($OPTIND -1)) for filename in "$@" ; do load $filename $series done ...pat |