Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7938 r7944 36 36 # 37 37 38 source `dirname $0`/sourcefile 39 printprocesslog "INFO starting $0" 38 40 program=fillcallisto 39 source `dirname $0`/sourcefile 41 column=fFillCallisto 40 42 41 43 set -C 42 44 43 column=fFillCallisto 44 45 lockfile=$lockpath/lock-$program.txt 46 47 scriptlogpath=$runlogpath/$program 48 makedir $scriptlogpath 49 scriptlog=$scriptlogpath/run$program-$datetime.log 50 45 scriptlog=$runlogpath/run$program-$datetime.log 51 46 date >> $scriptlog 2>&1 52 47 53 48 # check if the script is already running 49 lockfile=$lockpath/lock-$program.txt 54 50 checklock >> $scriptlog 2>&1 55 51 … … 71 67 for sequence in ${sequences[@]} 72 68 do 69 printprocesslog "INFO starting $program for sequence $sequence" 73 70 no=`printf %08d $sequence | cut -c 0-4` 74 71 no2=`printf %08d $sequence` … … 86 83 setstatus "start" >> $scriptlog 2>&1 87 84 echo "run fillcalib..." >> $scriptlog 2>&1 85 printprocesslog "INFO starting fillcalib for sequence $sequence" 88 86 89 87 check1=`root -q -b $macrospath/fillcalib.C+\("\"$calibfile\""\,kFALSE\) | tee $fillcaliblog | grep int | sed -e 's/(int)//'` 90 88 91 89 case $check1 in 92 1) echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 ;; 90 1) echo " check1=$check1 -> everything ok -> run fillsignal " >> $scriptlog 2>&1 91 printprocesslog "INFO done fillcalib successfully for sequence $sequence" 92 ;; 93 93 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 94 printprocesslog "WARN connection to DB failed" 94 95 check="no" 95 96 setstatus "stop" >> $scriptlog 2>&1 96 97 continue ;; 97 98 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 99 printprocesslog "ERROR fillcalib failed for sequence $sequence" 98 100 com=$Ffillcalib 99 101 check=$check1 … … 102 104 esac 103 105 106 printprocesslog "INFO starting fillsignal for sequence $sequence" 104 107 check2=`root -q -b $macrospath/fillsignal.C+\("\"$signalfile\""\,kFALSE\) | tee $fillsignallog | grep int | sed -e 's/(int)//'` 105 108 case $check2 in 106 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 ;; 109 1) echo " check2=$check2 -> everything ok " >> $scriptlog 2>&1 110 printprocesslog "INFO done fillsignal successfully for sequence $sequence" 111 ;; 107 112 0) echo " check2=$check2 -> no connection to db -> continue..." >> $scriptlog 2>&1 113 printprocesslog "WARN connection to DB failed" 108 114 check="no" 109 115 ;; 110 116 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 117 printprocesslog "ERROR fillsignal failed for sequence $sequence" 111 118 com=$Ffillsignal 112 119 check=$check2
Note:
See TracChangeset
for help on using the changeset viewer.