- Timestamp:
- 01/04/15 04:58:51 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/RunCallisto.sh
r17902 r18070 13 13 14 14 # check how many callistos are running 15 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`15 callistocount=`ps aux | grep callisto_ | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l` 16 16 17 17 while [ $callistocount -ge $numcallistos ] 18 18 do 19 19 source `dirname $0`/../Sourcefile.sh 20 printprocesslog "INFO wait "$callistowait" as "$callistocoun d" callistos running ( "$numcallistos" allowed). "20 printprocesslog "INFO wait "$callistowait" as "$callistocount" callistos running ( "$numcallistos" allowed). " 21 21 sleep $callistowait 22 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`22 callistocount=`ps aux | grep callisto_ | grep -E -o '20[12][0-9][01][0-9][0-3][0-9]_[0-9][0-9][0-9]' | sort | uniq | wc -l` 23 23 done 24 24 … … 26 26 drun) # process data run 27 27 # run callisto 28 echo "fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"\""\,"\"$6\""\) | tee $logfile "28 printprocesslog "DEBUG fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"\""\,"\"$6\""\) | tee $logfile " 29 29 check1=`root -q -b fact/analysis/callisto_data.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"\""\,"\"$6\""\) | tee $logfile | intgrep` 30 30 ;; 31 31 prun) # process pedestal run 32 echo "fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile "32 printprocesslog "DEBUG fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile " 33 33 check1=`root -q -b fact/analysis/callisto_pedestal.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile | intgrep` 34 34 ;; 35 35 crun) # process light-pulser run 36 echo "fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$6\""\) | tee $logfile "36 printprocesslog "DEBUG fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$6\""\) | tee $logfile " 37 37 check1=`root -q -b fact/analysis/callisto_lightpulser.C\("\"$3\""\,"\"$4\""\,"\"$5\""\,"\"$6\""\) | tee $logfile | intgrep` 38 38 ;; 39 39 time) # do drs-calib 40 echo "fact/analysis/callisto_drstime.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile "40 printprocesslog "DEBUG fact/analysis/callisto_drstime.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile " 41 41 check1=`root -q -b fact/analysis/callisto_drstime.C\("\"$3\""\,"\"$4\"","\"$5\""\) | tee $logfile | intgrep` 42 42 ;; … … 59 59 ;; 60 60 *) printprocesslog "ERROR callisto failed for file "$3" (check1=$check1)" 61 # allow for reprocessing in case callisto fails once 62 cplogfile=$logfile.cp 63 if ! ls $cplogfile >/dev/null 64 then 65 mv $logfile $cplogfile 66 fi 61 67 ;; 62 68 esac
Note:
See TracChangeset
for help on using the changeset viewer.