#!/bin/sh # Time-stamp: <2003-07-27 03:14:08 yuji> # execute TopRemake from production output exe=${HOME}/spool/spin/herwig/workrel/bin/Linux2-KCC_4_0/TopRemake #scriptdir=${HOME}/spool/cdfsim/myscripts scriptdir=${HOME}/spool/spin/herwig/scripts # # # export scriptdir tcl=${scriptdir}/remake_4111.tcl pdir="p$1" if [ ! -d ${pdir} ]; then echo "Dir ${pdir} doesn't exist. Abort." exit fi cd ${pdir} for idx in *.prod; do export remake_output_file=${idx%.*}.remake export remake_input_file=${idx} /bin/nice -n 19 ${exe} ${tcl} > remake.$1.log 2>&1 done touch ../Done.remake.$1 #EOF