Ignore:
Timestamp:
02/03/06 16:42:00 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck

    r7471 r7476  
    5050table=RunProcessStatus
    5151column=fDataCheckDone
    52 date=NULL
    53 datetime=`date +%F-%H-%M-%S`
    54 year=`date +%Y`
    5552
    5653todofile=$listpath/ToDo-$table-$column
    57 getstatuslogpath=$logpath/getstatus/$program/$year
    58 getstatuslog=$getstatuslogpath/getstatus-$program-$datetime.log
    5954
    6055scriptlogpath=$logpath/run/$program/`date +%Y/%m`
     
    6358
    6459date >> $scriptlog 2>&1
    65 
    66 makedir $getstatuslogpath >> $scriptlog 2>&1
    6760
    6861# check if there are already todo files
     
    8477   esac
    8578
    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
    9382   rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1
    9483fi
     
    133122then
    134123   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
    139125fi
    140126
     
    227213   makedir $resetlogpath >> $scriptlog 2>&1
    228214   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)//'`
    232217   case $check5 in
    233218      1)   echo "check5=$check5 -> everything ok, fExclusions have been reset " >> $scriptlog 2>&1
     
    248233   var1=$date
    249234   var2=$no2
    250    setstatus
     235   setstatus "stop" >> $scriptlog 2>&1
    251236done
    252237
    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 
     238finish >> $scriptlog 2>&1
     239
Note: See TracChangeset for help on using the changeset viewer.