Changeset 17153 for trunk


Ignore:
Timestamp:
09/09/13 15:50:19 (11 years ago)
Author:
Daniela Dorner
Message:
small changes to allow restricting number of callisto.C from RunCallisto.sh
File:
1 edited

Legend:

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

    r17108 r17153  
    100100printprocesslog "INFO #files-daq:"${#fileslocal[@]}" #files-newdaq:"${#files[@]}" #callisto-logs:"${#callistofiles[@]}" #data-runs:"$numdataruns
    101101
    102 while [ ${#fileslocal[@]} -ne ${#files[@]} ] || [ $numdataruns -ne ${#callistofiles[@]} ]
     102while [ ${#fileslocal[@]} -ne ${#files[@]} ] || [ $numdataruns -ne ${#callistofiles[@]} ] || [ ${#callistofiles[@]} -eq 0 ]
    103103do
    104104   # only continue with script
     
    238238            printprocesslog "INFO counting callisto logs and data files +1."
    239239            # get number of callisto logs
    240             callistocount=`ps aux | grep RunCallisto | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l`
     240            runcallistocount=`ps aux | grep RunCallisto | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l`
    241241            # count data runs
    242242            numdataruns=`echo " $numdataruns + 1 " | bc -l`
    243243            #echo "numdata +1"
    244244           
    245             #echo "cal: "$callistocount" numdat: "$numdataruns" numcallog: "${#callistofiles[@]}
    246             printprocesslog "INFO running callistos: "$callistocount" #data-runs: "$numdataruns" #callisto-logs: "${#callistofiles[@]}
     245            #echo "cal: "$runcallistocount" numdat: "$numdataruns" numcallog: "${#callistofiles[@]}
     246            printprocesslog "INFO running callistos: "$runcallistocount" #data-runs: "$numdataruns" #callisto-logs: "${#callistofiles[@]}
    247247            # do not overload system in case of a lot of files to be processed
    248             #  callistocount is set in setup.fact.lp.data
    249             if [ $callistocount -ge $numcallistos ]
    250             then
    251                printprocesslog "INFO "$callistocount" RunCallisto.sh are running -> continue"
    252                #echo "INFO "$callistocount" RunCallisto.sh are running -> continue"
     248            #  numruncallistos is set in setup.fact.lp.data
     249            if [ $runcallistocount -ge $numruncallistos ]
     250            then
     251               printprocesslog "INFO "$runcallistocount" RunCallisto.sh are running -> continue"
     252               #echo "INFO "$runcallistocount" RunCallisto.sh are running -> continue"
    253253               continue
    254254            fi
     
    318318      fi
    319319   done
    320    printprocesslog "INFO status after loop: "$callistocount" callistos running, "$numdataruns" data runs to process in total, "${#callistofiles[@]}" have already a callisto-logfile "
     320   printprocesslog "INFO status after loop: "$runcallistocount" callistos running, "$numdataruns" data runs to process in total, "${#callistofiles[@]}" have already a callisto-logfile "
    321321   
    322322   # get new file lists
Note: See TracChangeset for help on using the changeset viewer.