Changeset 7807 for trunk


Ignore:
Timestamp:
07/26/06 15:51:27 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7806 r7807  
    111111do
    112112   runno=$missingcacorun
    113    echo "no cacofile found for run "$runno >> $scriptlog 2>&1
    114    echo "finding cacofile" >> $scriptlog 2>&1
    115    ccfile=`find $subsystemdir/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep`  
    116    echo "ccfile: "$ccfile  >> $scriptlog 2>&1
     113   echo "missing cacofile for run "$runno >> $scriptlog 2>&1
     114   echo "-> finding cacofile" >> $scriptlog 2>&1
     115   ccfile=`find $subsystemdir/cc/ -name [2][0][0-2][0-9][0,1][0-9][0-3][0-9]_*${runno}_[P,D,C,S]_*_S.rep` 2>/dev/null
     116   echo " ccfile: "$ccfile  >> $scriptlog 2>&1
    117117   if [ "$ccfile" = "" ]
    118118   then
    119       echo "no ccfile found for run "$runno >> $scriptlog 2>&1
     119      echo " no ccfile found for run "$runno >> $scriptlog 2>&1
    120120      continue
    121121   fi
     
    125125      path=`dirname $ccfile`
    126126      path=`echo $path | sed -e 's/cc/caco/'`
    127       cacofile=`find $path -name *$newrun*`
     127      cacofile=`find $path -name *$newrun*` 2>/dev/null
    128128      if [ "$cacofile" = "" ]
    129129      then
    130130         continue
    131131      else
    132          echo "inserting cacofile $file for run $missingcacorun..." >> $scriptlog 2>&1
     132         echo " inserting cacofile $file for run $missingcacorun..." >> $scriptlog 2>&1
    133133         check2=`root -q -b $macrospath/insertcacofile.C+\("\"$runno\""\,"\"$newrun\""\) | tee $filesondisklogpath/insertcacofile-$missingcacorun.log | grep int | sed -e 's/(int)//'`
    134134
    135135         case $check2 in
    136             1)   echo "check2=$check2 -> everything ok -> insert is done" >> $scriptlog 2>&1 ;;
    137             *)   echo "check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun >> $scriptlog 2>&1 ;;
     136            1)   echo " check2=$check2 -> everything ok -> insert is done" >> $scriptlog 2>&1 ;;
     137            *)   echo " check2=$check2 -> ERROR -> something went wrong while inserting run "$missingcacorun >> $scriptlog 2>&1 ;;
    138138         esac
    139139         break
    140140      fi
    141141   done
    142    echo "cacofile: "$cacofile >> $scriptlog 2>&1
    143 
     142   if [ "$cacofile" = "" ]
     143   then
     144      echo " no cacofile found for run "$runno >> $scriptlog 2>&1
     145   else
     146      echo " cacofile: "$cacofile >> $scriptlog 2>&1
     147   fi
    144148done
    145149
Note: See TracChangeset for help on using the changeset viewer.