Changeset 9355 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 02/19/09 21:22:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r9054 r9355 43 43 set -C 44 44 45 scriptlog=$runlogpath/$program-$datetime.log46 date >> $scriptlog 2>&147 48 45 # check if the script is already running 49 46 lockfile=$lockpath/lock-$program.txt 50 checklock >> $scriptlog 2>&147 checklock 51 48 52 49 # get todo file 53 gettodo >> $scriptlog 2>&150 gettodo 54 51 55 52 cd $mars … … 67 64 calibfile=$path/calib$no2.root 68 65 fillcallistologpath=$logpath/$program/$no 69 makedir $fillcallistologpath >> $scriptlog 2>&166 makedir $fillcallistologpath 70 67 fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log 71 68 fillsignallog=$fillcallistologpath/fillsignal-$sequence.log 72 69 73 echo "run $program for sequence $sequence" >> $scriptlog 2>&1 74 setstatus "start" >> $scriptlog 2>&1 75 echo "run fillcalib..." >> $scriptlog 2>&1 70 printprocesslog "INFO run $program for sequence $sequence" 71 setstatus "start" 76 72 printprocesslog "INFO starting fillcalib for sequence $sequence" 77 73 … … 79 75 80 76 case $check1 in 81 1) echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 82 printprocesslog "INFO done fillcalib successfully for sequence $sequence" 77 1) printprocesslog "INFO done fillcalib successfully for sequence $sequence (check1=$check1)" 83 78 ;; 84 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 85 printprocesslog "WARN connection to DB failed" 79 0) printprocesslog "WARN connection to DB failed (check1=$check1)" 86 80 check="no" 87 setstatus "stop" >> $scriptlog 2>&181 setstatus "stop" 88 82 continue ;; 89 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 90 printprocesslog "ERROR fillcalib failed for sequence $sequence" 83 *) printprocesslog "ERROR fillcalib failed for sequence $sequence (check1=$check1)" 91 84 com=$Ffillcalib 92 85 check=$check1 93 setstatus "stop" >> $scriptlog 2>&186 setstatus "stop" 94 87 continue ;; 95 88 esac … … 98 91 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | intgrep` 99 92 case $check2 in 100 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 101 printprocesslog "INFO done fillsignal successfully for sequence $sequence" 93 1) printprocesslog "INFO done fillsignal successfully for sequence $sequence (check2=$check2)" 102 94 ;; 103 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 104 printprocesslog "WARN connection to DB failed" 95 0) printprocesslog "WARN connection to DB failed (check2=$check2)" 105 96 check="no" 106 97 ;; 107 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 108 printprocesslog "ERROR fillsignal failed for sequence $sequence" 98 *) printprocesslog "ERROR fillsignal failed for sequence $sequence (check2=$check2)" 109 99 com=$Ffillsignal 110 100 check=$check2 … … 112 102 esac 113 103 114 setstatus "stop" >> $scriptlog 2>&1104 setstatus "stop" 115 105 done 116 106 117 finish >> $scriptlog 2>&1107 finish 118 108
Note:
See TracChangeset
for help on using the changeset viewer.