- Timestamp:
- 09/09/13 15:50:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/Step1.sh
r17108 r17153 100 100 printprocesslog "INFO #files-daq:"${#fileslocal[@]}" #files-newdaq:"${#files[@]}" #callisto-logs:"${#callistofiles[@]}" #data-runs:"$numdataruns 101 101 102 while [ ${#fileslocal[@]} -ne ${#files[@]} ] || [ $numdataruns -ne ${#callistofiles[@]} ] 102 while [ ${#fileslocal[@]} -ne ${#files[@]} ] || [ $numdataruns -ne ${#callistofiles[@]} ] || [ ${#callistofiles[@]} -eq 0 ] 103 103 do 104 104 # only continue with script … … 238 238 printprocesslog "INFO counting callisto logs and data files +1." 239 239 # 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` 241 241 # count data runs 242 242 numdataruns=`echo " $numdataruns + 1 " | bc -l` 243 243 #echo "numdata +1" 244 244 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[@]} 247 247 # do not overload system in case of a lot of files to be processed 248 # callistocountis set in setup.fact.lp.data249 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" 253 253 continue 254 254 fi … … 318 318 fi 319 319 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 " 321 321 322 322 # get new file lists
Note:
See TracChangeset
for help on using the changeset viewer.