Changeset 7911 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 08/22/06 15:36:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.