Changeset 7471 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 02/01/06 18:04:43 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7465 r7471 104 104 no=`printf %08d $sequence | cut -c 0-4` 105 105 no2=`printf %08d $sequence` 106 var1=$no 107 var2=$no2 106 108 path="$datapath/callisto/$no/$no2" 107 109 signalfile=$path/signal$no2.root … … 114 116 115 117 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 118 setstatus "start" >> $scriptlog 2>&1 116 119 echo "run fillcalib..." >> $scriptlog 2>&1 120 117 121 check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'` 118 122 119 123 case $check1 in 120 1) echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;;124 1) echo "check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;; 121 125 *) echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 122 continue;; 126 com="fillcalib for sequence $sequence failed" 127 check=$check1 128 setstatus "stop" >> $scriptlog 2>&1 129 continue ;; 123 130 esac 124 131 125 132 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'` 126 133 case $check2 in 127 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 128 echo "-> inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 129 statustime="Now()" 130 failed="NULL" 131 starttime="NULL" 132 failedtime="NULL" 133 var1=$no 134 var2=$sequence 135 setstatus 136 ;; 137 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 134 1) echo "check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 135 *) echo "check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 136 com="fillsignal for sequencec $sequence failed" 137 check=$check2 138 ;; 138 139 esac 140 echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1 141 setstatus "stop" >> $scriptlog 2>&1 139 142 done 140 143
Note:
See TracChangeset
for help on using the changeset viewer.