Changeset 7476 for trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
- Timestamp:
- 02/03/06 16:42:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7471 r7476 50 50 table=RunProcessStatus 51 51 column=fDataCheckDone 52 date=NULL53 datetime=`date +%F-%H-%M-%S`54 year=`date +%Y`55 52 56 53 todofile=$listpath/ToDo-$table-$column 57 getstatuslogpath=$logpath/getstatus/$program/$year58 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log59 54 60 55 scriptlogpath=$logpath/run/$program/`date +%Y/%m` … … 63 58 64 59 date >> $scriptlog 2>&1 65 66 makedir $getstatuslogpath >> $scriptlog 2>&167 60 68 61 # check if there are already todo files … … 84 77 esac 85 78 86 echo "getting list..." >> $scriptlog 2>&1 87 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` 88 89 case $check0 in 90 1) echo "check0=$check0 -> everything ok -> do $program" >> $scriptlog 2>&1;; 91 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 92 esac 79 # get todo list 80 getdolist >> $scriptlog 2>&1 81 93 82 rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1 94 83 fi … … 133 122 then 134 123 echo "nothing to do -> exit" >> $scriptlog 2>&1 135 rm -v $todofile >> $scriptlog 2>&1 136 rm -v $lockfile >> $scriptlog 2>&1 137 date >> $scriptlog 2>&1 138 exit 124 finish >> $scriptlog 2>&1 139 125 fi 140 126 … … 227 213 makedir $resetlogpath >> $scriptlog 2>&1 228 214 resetlog=$resetlogpath/reset-exclusions-$no2-$date2.log 229 echo "setstatuslogfile: $setstatuslog" >> $scriptlog 2>&1 230 231 check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $setstatuslog | grep int | sed -e 's/(int)//'` 215 216 check5=`root -q -b $macrospath/resetcolumn.C+\("\"fExclusionsDone\""\,"\"SequenceBuildStatus\""\,"\"$date2\""\,"\"$date2\""\,kFALSE\) | tee $resetlog | grep int | sed -e 's/(int)//'` 232 217 case $check5 in 233 218 1) echo "check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1 … … 248 233 var1=$date 249 234 var2=$no2 250 setstatus 235 setstatus "stop" >> $scriptlog 2>&1 251 236 done 252 237 253 rm -v $todofile >> $scriptlog 2>&1 254 rm -v $lockfile >> $scriptlog 2>&1 255 256 set +C 257 258 date >> $scriptlog 2>&1 259 238 finish >> $scriptlog 2>&1 239
Note:
See TracChangeset
for help on using the changeset viewer.