#! /bin/sh # example file to run over some data files with soap, using # fbs as batch system # source directory: here are the command files etc source_dir=/usr/people/ehep4/jurgen/fbsng/soap # result directory: here goes the output result_dir=/usr/people/ehep4/jurgen/fbsng/soap # now we start working # input filename comes as argument infile=$1 # first declare setup etc . /usr/people/ehep/ehep_home/etc/e781rc.sh # get the products you need setup off781 # go to the working directory cd $FBS_SCRATCH #get all the files you need if [ $HOSTNAME != hep00.ifisica.uaslp.mx ]; then scp hep00:$infile infile else ln -s $infile infile fi cp $source_dir/soap.cmd $source_dir/recdf.ocs . cp $OFF781_DIR/example/pass11.tseg . #prepare running ocs_make_master $OFF781_DIR/bin/soap.exe -f soap.cmd > a.log 2>&1 #now clean up oname=`basename $infile` cp soap.log $result_dir/soap.log.$oname cp a.log $result_dir/a.log.$oname cp soap.hbk $result_dir/soap.hbk.$oname #and we are done exit 0