Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7938 r7944 40 40 41 41 source `dirname $0`/sourcefile 42 printprocesslog "INFO starting $0" 42 43 program=datacheck 43 44 column=fDataCheckDone … … 45 46 set -C 46 47 47 scriptlogpath=$runlogpath/$program 48 makedir $scriptlogpath 49 scriptlog=$scriptlogpath/$program-$datetime.log 50 48 scriptlog=$runlogpath/$program-$datetime.log 51 49 date >> $scriptlog 2>&1 52 50 … … 62 60 63 61 echo "do $program for run "$run >> $scriptlog 2>&1 62 printprocesslog "INFO do $program for run $run" 64 63 no=`printf %08d $run | cut -c 0-2` 65 64 no2=`printf %08d $run` … … 84 83 case $check1 in 85 84 1) echo " check1=$check1 -> everything ok -> go on with $program..." >> $scriptlog 2>&1 85 printprocesslog "INFO finished filldotraw.C sucessfully for $rawfile" 86 86 ;; 87 87 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 88 printprocesslog "WARN connection to DB failed" 88 89 check="no" 89 90 setstatus "stop" >> $scriptlog 2>&1 90 91 continue ;; 91 92 *) echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 93 printprocesslog "ERROR filldotraw.C failed for $rawfile" 92 94 com=$Ffillraw 93 95 check=$check1 … … 97 99 98 100 # running sinope 101 printprocesslog "INFO running sinope for $run" 99 102 sinopepath=$datapath/sinope/$date 100 103 makedir $sinopepath >> $scriptlog 2>&1 … … 113 116 ;; 114 117 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 118 printprocesslog "ERROR sinope $sin failed for $rawfile" 115 119 com=$Fsinope 116 120 # comadd= … … 132 136 case $check3 in 133 137 1) echo " check3=$check3 -> everything ok -> set status..." >> $scriptlog 2>&1 138 printprocesslog "INFO finished fillsinope.C sucessfully for run $run" 134 139 ;; 135 140 0) echo " check3=$check3 -> no connection to db -> continue..." >> $scriptlog 2>&1 141 printprocesslog "WARN connection to DB failed" 136 142 check="no" 137 143 setstatus "stop" >> $scriptlog 2>&1 138 144 continue ;; 139 145 *) echo " check3=$check3 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 146 printprocesslog "ERROR fillsinope.C failed for run $run" 140 147 com=$Ffillsinope 141 148 check=$check3 … … 146 153 # resetting the status for exclusions 147 154 echo "resetting the status for fExclusionsDone for date $date2" >> $scriptlog 2>&1 155 printprocesslog "INFO resetting fExclusions done for $date2" 148 156 resetlogpath=$logpath/resetexclusions/$date 149 157 makedir $resetlogpath >> $scriptlog 2>&1 … … 153 161 case $check5 in 154 162 1) echo " check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1 163 printprocesslog "INFO resetted fExclusions done for $date2 successfully" 155 164 ;; 156 165 0) echo " check5=$check5 -> no connection to db -> continue..." >> $scriptlog 2>&1 166 printprocesslog "WARN connection to DB failed" 157 167 check="no" 158 168 setstatus "stop" >> $scriptlog 2>&1 159 169 continue ;; 160 170 *) echo " check5=$check5 -> ERROR -> step could not be resetted -> repeat step " >> $scriptlog 2>&1 171 printprocesslog "ERROR resetcolumn.C failed for date $date2" 161 172 com=$Fresetexcl 162 173 comadd=`echo $date2 | sed -e 's/-//g'`
Note:
See TracChangeset
for help on using the changeset viewer.