Changeset 7030 for trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
- Timestamp:
- 05/13/05 15:58:07 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/filesondisk
r6934 r7030 27 27 # 28 28 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 29 source /home/operator/Mars/datacenter/scripts/sourcefile 35 30 36 31 cd $mars … … 39 34 subsystemdir=/magic/subsystemdata 40 35 rawdir=/magic/data 41 logpath=/magic/datacenter/autologs/filesondisk/`date +%Y`36 filesondisklogpath=$logpath/filesondisk/`date +%Y` 42 37 43 if [ ! -d $ logpath ]38 if [ ! -d $filesondisklogpath ] 44 39 then 45 mkdir -pv $ logpath46 if [ ! -d $ logpath ]40 mkdir -pv $filesondisklogpath 41 if [ ! -d $filesondisklogpath ] 47 42 then 48 echo "could not make directory "$ logpath43 echo "could not make directory "$filesondisklogpath 49 44 exit 50 45 fi … … 55 50 echo "checking disk for ccfiles..." 56 51 57 filename=$ logpath/ccfilesondisk-$date.txt52 filename=$filesondisklogpath/ccfilesondisk-$date.txt 58 53 column=fCCFileAvail 59 54 … … 62 57 63 58 echo "resetting runs..." 64 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`59 check3=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 65 60 66 61 case $check3 in … … 73 68 echo "checking disk for cacofiles..." 74 69 75 filename=$ logpath/cacofilesondisk-$date.txt70 filename=$filesondisklogpath/cacofilesondisk-$date.txt 76 71 column=fCaCoFileAvail 77 72 … … 80 75 81 76 echo "resetting runs..." 82 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`77 check0=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 83 78 84 79 case $check0 in … … 90 85 91 86 echo "checking missing cacofiles..." 92 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $ logpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'`87 check1=`root -q -b $macrospath/findcacofiles.C+\("\"$date\""\) | tee $filesondisklogpath/findcacofiles-$date.log | grep int | sed -e 's/(int)//'` 93 88 94 89 case $check1 in … … 97 92 esac 98 93 99 missingcacoruns=(`cat $ logpath/findcacofiles-$date.txt`)94 missingcacoruns=(`cat $filesondisklogpath/findcacofiles-$date.txt`) 100 95 101 96 for missingcacorun in ${missingcacoruns[@]} … … 122 117 else 123 118 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)//'` 125 120 126 121 case $check2 in … … 139 134 echo "checking disk for rawfiles..." 140 135 141 filename=$ logpath/rawfilesondisk-$date.txt136 filename=$filesondisklogpath/rawfilesondisk-$date.txt 142 137 column=fRawFileAvail 143 138 … … 145 140 146 141 echo "resetting runs..." 147 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $ logpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'`142 check4=`root -q -b $macrospath/resetallruns.C+\("\"$filename\""\,"\"$column\""\) | tee $filesondisklogpath/resetall-$column-$date.log | grep int | sed -e 's/(int)//'` 148 143 149 144 case $check4 in
Note:
See TracChangeset
for help on using the changeset viewer.