Ignore:
Timestamp:
05/13/05 15:58:07 (20 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r6934 r7030  
    2727#
    2828
    29 export ROOTSYS=/opt/root_v3.10.02
    30 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
    31 export PATH=$PATH:$ROOTSYS/bin
    32 
    33 mars=/home/operator/Mars
    34 macrospath=$mars/datacenter/macros
     29source /home/operator/Mars/datacenter/scripts/sourcefile
    3530
    3631cd $mars
     
    3934subsystemdir=/magic/subsystemdata
    4035rawdir=/magic/data
    41 logpath=/magic/datacenter/autologs/filesondisk/`date +%Y`
     36filesondisklogpath=$logpath/filesondisk/`date +%Y`
    4237
    43 if [ ! -d $logpath ]
     38if [ ! -d $filesondisklogpath ]
    4439then
    45   mkdir -pv $logpath
    46   if [ ! -d $logpath ]
     40  mkdir -pv $filesondisklogpath
     41  if [ ! -d $filesondisklogpath ]
    4742  then
    48      echo "could not make directory "$logpath
     43     echo "could not make directory "$filesondisklogpath
    4944     exit
    5045  fi
     
    5550echo "checking disk for ccfiles..."
    5651
    57 filename=$logpath/ccfilesondisk-$date.txt
     52filename=$filesondisklogpath/ccfilesondisk-$date.txt
    5853column=fCCFileAvail
    5954
     
    6257
    6358echo "resetting runs..."
    64 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     59check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    6560
    6661case $check3 in
     
    7368echo "checking disk for cacofiles..."
    7469
    75 filename=$logpath/cacofilesondisk-$date.txt
     70filename=$filesondisklogpath/cacofilesondisk-$date.txt
    7671column=fCaCoFileAvail
    7772
     
    8075
    8176echo "resetting runs..."
    82 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     77check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    8378
    8479case $check0 in
     
    9085
    9186echo "checking missing cacofiles..."
    92 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $logpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`
     87check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $filesondisklogpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`
    9388
    9489case $check1 in
     
    9792esac
    9893
    99 missingcacoruns=(`cat $logpath/findcacofiles-$date.txt`)
     94missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`)
    10095
    10196for missingcacorun in ${missingcacoruns[@]}
     
    122117      else
    123118         echo "inserting cacofile $file for run $missingcacorun..."
    124          check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $logpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`
     119         check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`
    125120
    126121         case $check2 in
     
    139134echo "checking disk for rawfiles..."
    140135
    141 filename=$logpath/rawfilesondisk-$date.txt
     136filename=$filesondisklogpath/rawfilesondisk-$date.txt
    142137column=fRawFileAvail
    143138
     
    145140
    146141echo "resetting runs..."                                   
    147 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
     142check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`
    148143
    149144case $check4 in
Note: See TracChangeset for help on using the changeset viewer.