Ignore:
Timestamp:
09/09/13 15:53:28 (11 years ago)
Author:
Daniela Dorner
Message:
adapted macro paths, included wait in case there are already enough callisto.C running
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/RunCallisto.sh

    r15389 r17155  
    1212logfile=$outpath"/"$seqnum"-calibration.log"
    1313
     14# make sure that no other RunCallisto.sh is started for this seq
     15touch $logfile
     16
    1417cd $mars
    1518
     19# check how many callistos are running
     20callistocount=`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
     22while [ $callistocount -ge $numcallistos ]
     23do
     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`
     28done
     29
    1630# run callisto
    17 printprocesslog "INFO starting callisto6.C for sequence "$seqnum
     31printprocesslog "INFO starting callisto.C for sequence "$seqnum
    1832
    19 check1=`root -q -b fact/callisto6.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep`
     33check1=`root -q -b fact/analysis/callisto.C\("\"$seqfile\""\,"\"$outpath\""\) | tee $logfile | intgrep`
    2034
    2135case $check1 in
     
    2337        `dirname $0`/RunStar.sh $seqfile &
    2438        ;;
    25    *)   printprocesslog "ERROR callisto6.C failed for sequence "$seqnum" (check1=$check1)"
     39   *)   printprocesslog "ERROR callisto.C failed for sequence "$seqnum" (check1=$check1)"
    2640        ;;
    2741esac
Note: See TracChangeset for help on using the changeset viewer.