Changeset 7911 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/22/06 15:36:10 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/buildsequenceentries
r7909 r7911 28 28 # this step is needed. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written. 30 # After checking if the script is already running the todolist is written. 32 31 # Then the sequences are built for each date in the todolist using the 33 32 # macro buildsequenceentries.C … … 78 77 buildsequenceentrieslog=$buildsequentriespath/buildsequenceentries-$date.log 79 78 80 echo "run $program..." >> $scriptlog 2>&181 79 setstatus "start" >> $scriptlog 2>&1 82 80 … … 84 82 85 83 case $check1 in 86 1) echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1;;87 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&184 1) echo " check1=$check1 -> everything ok -> setting status for $date..." >> $scriptlog 2>&1;; 85 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 88 86 check="no" 89 87 ;; 90 *) echo " check1=$check1 -> ERROR - $program.C failed for $date -> step has to be repeated" >> $scriptlog 2>&188 *) echo " check1=$check1 -> ERROR - $program.C failed for $date -> step has to be repeated" >> $scriptlog 2>&1 91 89 com=$Fbuildsequ 92 90 check=$check1 … … 94 92 esac 95 93 96 echo "inserting the status for $program for date $date into the db" >> $scriptlog 2>&197 94 setstatus "stop" >> $scriptlog 2>&1 98 95 done -
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7909 r7911 28 28 # the sequences. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each sequence the availability of the files (raw, cc, caco) is 33 32 # checked by using the macro checkfilesavail.C … … 79 78 sequencefile=$sequpath/$no/sequence$no2.txt 80 79 81 echo "run $program..." >> $scriptlog 2>&182 80 setstatus "start" >> $scriptlog 2>&1 83 81 … … 85 83 86 84 case $check1 in 87 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;;88 2) echo " check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&185 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 86 2) echo " check1=$check1 -> files not yet available -> continue..." >> $scriptlog 2>&1 89 87 check="no" 90 88 ;; 91 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&189 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 92 90 check="no" 93 91 ;; … … 98 96 esac 99 97 100 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1101 98 setstatus "stop" >> $scriptlog 2>&1 102 99 done -
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7909 r7911 28 28 # the datasets. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each dataset the sequences are extracted from the datasetfile 33 32 # and for each sequence the availability of the star files checked by using … … 85 84 86 85 outpath=$logpath/$program/$no 87 echo "outpath: "$outpath >> $scriptlog 2>&188 86 makedir $outpath >> $scriptlog 2>&1 89 87 90 echo "run $program..." >> $scriptlog 2>&191 88 setstatus "start" >> $scriptlog 2>&1 92 89 93 90 for sequence in ${sequences[@]} 94 91 do 92 echo "run $program for sequence $sequence..." >> $scriptlog 2>&1 95 93 96 94 check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | grep int | sed -e 's/(int)//'` 97 95 98 96 case $check1 in 99 1) echo " check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;100 2) echo " check1=$check1 -> files for sequence $sequence not yet available -> continue..." >> $scriptlog 2>&197 1) echo " check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;; 98 2) echo " check1=$check1 -> files for sequence $sequence not yet available -> continue..." >> $scriptlog 2>&1 101 99 check="no" 102 100 break 103 101 ;; 104 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1102 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 105 103 check="no" 106 104 break 107 105 ;; 108 *) echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1 109 echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1 106 *) echo " check1=$check1 -> ERROR " >> $scriptlog 2>&1 110 107 com=$Fstardone 111 108 comadd=$sequence … … 116 113 done 117 114 118 echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1119 115 setstatus "stop" >> $scriptlog 2>&1 120 116 done -
trunk/MagicSoft/Mars/datacenter/scripts/correcttime
r7909 r7911 28 28 # correction 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each run the timing correction is done 33 32 # If this was successful, the status is inserted into the database using -
trunk/MagicSoft/Mars/datacenter/scripts/doexclusions
r7909 r7911 28 28 # this step is needed. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then the run are excluded for each date in the todolist using the 33 32 # macro doexclusions.C … … 75 74 var2=$date 76 75 doexclusionspath=$logpath/$program/$year2 77 echo "excl path: $doexclusionspath"78 76 makedir $doexclusionspath >> $scriptlog 2>&1 79 77 doexclusionslog=$doexclusionspath/doexclusions-$date.log 80 78 81 echo "run $program..." >> $scriptlog 2>&182 79 setstatus "start" >> $scriptlog 2>&1 83 80 … … 85 82 86 83 case $check1 in 87 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;;88 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&184 1) echo " check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;; 85 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 89 86 com=$Fdoexcl 90 87 check=$check1 91 88 ;; 92 89 esac 93 echo "inserting the status for $program for date $date into the db" >> $scriptlog 2>&190 94 91 setstatus "stop" >> $scriptlog 2>&1 95 92 done -
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7909 r7911 28 28 # all sequences of which the results are not yet in the database. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each sequence in the todo list the calibration results are 33 32 # filled into the table Calibration in the database using the macros … … 56 55 57 56 # get todo file 58 gettodo list>> $scriptlog 2>&157 gettodo >> $scriptlog 2>&1 59 58 60 59 sequences=(`cat $todofile`) … … 79 78 calibfile=$path/calib$no2.root 80 79 fillcallistologpath=$logpath/$program/$no 81 echo "$programlogpath: "$fillcallistologpath >> $scriptlog 2>&182 80 makedir $fillcallistologpath >> $scriptlog 2>&1 83 81 fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log … … 91 89 92 90 case $check1 in 93 1) echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;94 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&191 1) echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;; 92 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 95 93 check="no" 96 94 setstatus "stop" >> $scriptlog 2>&1 97 95 continue ;; 98 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&196 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 99 97 com=$Ffillcalib 100 98 check=$check1 … … 105 103 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'` 106 104 case $check2 in 107 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;108 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1105 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 106 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 109 107 check="no" 110 108 ;; 111 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1109 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 112 110 com=$Ffillsignal 113 111 check=$check2 114 112 ;; 115 113 esac 116 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1114 117 115 setstatus "stop" >> $scriptlog 2>&1 118 116 done -
trunk/MagicSoft/Mars/datacenter/scripts/fillganymed
r7909 r7911 28 28 # for all datasets of which the results are not yet in the database. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each dataset in the todo list the ganymed results are filled 33 32 # into the table Ganymed in the database using the macro fillganymed.C … … 78 77 ganymedfile=$path/ganymed$no2.root 79 78 fillganymedlogpath=$logpath/$program/$no 80 echo "$programlogpath: "$fillganymedlogpath >> $scriptlog 2>&181 79 makedir $fillganymedlogpath >> $scriptlog 2>&1 82 80 fillganymedlog=$fillganymedlogpath/$program-$dataset.log … … 87 85 check2=`root -q -b $macrospath/fillganymed.C+\("\"$ganymedfile\""\,kFALSE\) | tee $fillganymedlog | grep int | sed -e 's/(int)//'` 88 86 case $check2 in 89 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;90 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&187 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 88 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 91 89 check="no" 92 90 ;; 93 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&191 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 94 92 com=$Ffillganymed 95 93 check=$check2 96 94 ;; 97 95 esac 98 echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1 96 99 97 setstatus "stop" >> scriptlog 2>&1 100 98 done -
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
r7909 r7911 28 28 # for all sequences of which the results are not yet in the database. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each sequence in the todo list the star results are filled 33 32 # into the table Star in the database using the macro fillstar.C … … 79 78 starfile=$path/star$no2.root 80 79 fillstarlogpath=$logpath/$program/$no 81 echo "fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&182 80 makedir $fillstarlogpath >> $scriptlog 2>&1 83 81 fillstarlog=$fillstarlogpath/$program-$sequence.log … … 88 86 check2=`root -q -b $macrospath/fillstar.C+\("\"$starfile\""\,kFALSE\) | tee $fillstarlog | grep \(int\) | sed -e 's/.*(int)//'` 89 87 case $check2 in 90 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;91 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&188 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 89 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 92 90 check="no" 93 91 ;; 94 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&192 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 95 93 com=$Ffillstar 96 94 check=$check2 97 95 ;; 98 96 esac 99 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&197 100 98 setstatus "stop" >> $scriptlog 2>&1 101 99 done -
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7902 r7911 84 84 echo " reason: $pulse" >> $scriptlog 2>&1 85 85 resetlogpath=$logpath/resetcallisto 86 echo "resetlogpath: $resetlogpath" >> $scriptlog 2>&187 86 makedir $resetlogpath >> $scriptlog 2>&1 88 87 resetlog=$resetlogpath/reset-callisto-$sequ.log … … 90 89 check1=`root -q -b $macrospath/resetcolumn.C+\("\"$column\""\,"\"$table\""\,"\"$sequ\""\,"\"$sequ\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'` 91 90 case $check1 in 92 1) echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&191 1) echo " check1=$check1 -> everything ok, callisto has been reset " >> $scriptlog 2>&1 93 92 ;; 94 *) echo " check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&193 *) echo " check1=$check1 -> ERROR -> step could not be resetted -> continue " >> $scriptlog 2>&1 95 94 continue ;; 96 95 esac -
trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
r7909 r7911 28 28 # for which this step is needed. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then the sequence file is written for each sequence in the todolist using 33 32 # the macro writesequencefile.C … … 87 86 check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\,"\"$sequpath\""\) | tee $writesequencefilelog | grep int | sed -e 's/(int)//'` 88 87 case $check2 in 89 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;;90 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&188 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 89 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 91 90 check="no" 92 91 ;; 93 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&192 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 94 93 com=$Fwritesequfile 95 94 check=$check2 96 95 ;; 97 96 esac 98 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&197 99 98 setstatus "stop" >> $scriptlog 2>&1 100 99 done
Note:
See TracChangeset
for help on using the changeset viewer.