Ignore:
Timestamp:
05/17/05 17:08:26 (20 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7030 r7052  
    104104for sequence in ${sequences[@]}
    105105do
    106    no=`printf %08d $sequence | cut -c 4`
    107    
    108    sequencepath=/magic/sequences/`printf %04d $no`
     106   no=`printf %08d $sequence | cut -c 0-4`
     107   no2=`printf %08d $sequence`
     108   sequencepath=/magic/sequences/$no
    109109   if [ ! -d $sequencepath ]
    110110   then
     
    117117   fi
    118118
    119    writesequencefilelogpath=$logpath/writesequencefile/`printf %04d $no`
     119   writesequencefilelogpath=$logpath/writesequencefile/$no
    120120   echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1
    121121   if [ ! -d $writesequencefilelogpath ]
     
    130130
    131131   echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1
    132    check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$sequence.log | grep int | sed -e 's/(int)//'`
     132   check2=`root -q -b $macrospath/writesequencefile.C+\($sequence\) | tee $writesequencefilelogpath/writesequencefile-$no2.log | grep int | sed -e 's/(int)//'`
    133133   case $check2 in
    134134      1)   echo "check2=$check2 -> everthing ok " >> $scriptlog 2>&1
    135135           echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1
    136            setstatuslogpath=$logpath/setstatus/writesequencefile/`printf %04d $no`
     136           setstatuslogpath=$logpath/setstatus/writesequencefile/$no
    137137           if [ ! -d $setstatuslogpath ]
    138138           then
     
    144144             fi
    145145           fi
    146            setstatuslog=$setstatuslogpath/setstatus-writesequencefile
    147            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
     146           setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$no2.log
     147           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    148148           case $check4 in
    149149             1)   echo "check4=$check4 -> everthing ok, status has been set" >> $scriptlog 2>&1;;
Note: See TracChangeset for help on using the changeset viewer.