Changeset 17155 for trunk/DataCheck/QuickLook
- Timestamp:
- 09/09/13 15:53:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/RunCallisto.sh
r15389 r17155 12 12 logfile=$outpath"/"$seqnum"-calibration.log" 13 13 14 # make sure that no other RunCallisto.sh is started for this seq 15 touch $logfile 16 14 17 cd $mars 15 18 19 # check how many callistos are running 20 callistocount=`ps aux | grep callisto.C | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l` 21 22 while [ $callistocount -ge $numcallistos ] 23 do 24 source `dirname $0`/../Sourcefile.sh 25 printprocesslog "INFO wait "$callistowait" as "$callistocound" callistos running ( "$numcallistos" allowed). " 26 sleep $callistowait 27 callistocount=`ps aux | grep callisto.C | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l` 28 done 29 16 30 # run callisto 17 printprocesslog "INFO starting callisto 6.C for sequence "$seqnum31 printprocesslog "INFO starting callisto.C for sequence "$seqnum 18 32 19 check1=`root -q -b fact/ callisto6.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep`33 check1=`root -q -b fact/analysis/callisto.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep` 20 34 21 35 case $check1 in … … 23 37 `dirname $0`/RunStar.sh $seqfile & 24 38 ;; 25 *) printprocesslog "ERROR callisto 6.C failed for sequence "$seqnum" (check1=$check1)"39 *) printprocesslog "ERROR callisto.C failed for sequence "$seqnum" (check1=$check1)" 26 40 ;; 27 41 esac
Note:
See TracChangeset
for help on using the changeset viewer.