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

Legend:

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

    r7232 r7233  
    4343
    4444scriptlogpath=$logpath/run/writesequencefiles/`date +%Y/%m/%d`
    45 if [ ! -d $scriptlogpath ]
    46 then
    47   mkdir -pv $scriptlogpath
    48   if [ ! -d $scriptlogpath ]
    49   then
    50      echo "could not make scriptlogpath "$scriptlogpath
    51      exit
    52   fi
    53 fi
    54 
     45makedir $scriptlogpath
    5546scriptlog=$scriptlogpath/runwritesequencefiles-$datetime.log
    5647
    5748date >> $scriptlog 2>&1
    5849
    59 
    60 if [ ! -d $getstatuslogpath ]
    61 then
    62   mkdir -pv $getstatuslogpath >> $scriptlog 2>&1
    63   if [ ! -d $getstatuslogpath ]
    64   then
    65      echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1
    66      date  >> $scriptlog 2>&1
    67      exit
    68   fi
    69 fi
     50makedir $getstatuslogpath >> $scriptlog 2>&1
    7051
    7152cd $mars
     
    10889   no2=`printf %08d $sequence`
    10990   sequencepath=$sequpath/$no
    110    if [ ! -d $sequencepath ]
    111    then
    112      mkdir -pv $sequencepath >> $scriptlog 2>&1
    113      if [ ! -d $sequencepath ]
    114      then
    115         echo "could not make sequencepath $sequencepath -> continue " >> $scriptlog 2>&1
    116         continue
    117      fi
    118    fi
     91   makedir $sequencepath >> $scriptlog 2>&1
    11992
    12093   writesequencefilelogpath=$logpath/writesequencefile/$no
    12194   echo "writesequencefilelogpath: "$writesequencefilelogpath >> $scriptlog 2>&1
    122    if [ ! -d $writesequencefilelogpath ]
    123    then
    124      mkdir -pv $writesequencefilelogpath >> $scriptlog 2>&1
    125      if [ ! -d $writesequencefilelogpath ]
    126      then
    127         echo "could not make writesequencefilelogpath $writesequencefilelogpath -> continue " >> $scriptlog 2>&1
    128         continue
    129      fi
    130    fi
     95   makedir $writesequencefilelogpath >> $scriptlog 2>&1
    13196
    13297   echo "write sequencefile for sequence $sequence" >> $scriptlog 2>&1
     
    136101           echo "-> inserting the status for writesequencefile for sequence $sequence into the db" >> $scriptlog 2>&1
    137102           setstatuslogpath=$logpath/setstatus/writesequencefile/$no
    138            if [ ! -d $setstatuslogpath ]
    139            then
    140              mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
    141              if [ ! -d $setstatuslogpath ]
    142              then
    143                 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
    144                 continue
    145              fi
    146            fi
     103           makedir $setstatuslogpath >> $scriptlog 2>&1
    147104           setstatuslog=$setstatuslogpath/setstatus-writesequencefile-$no2.log
     105
    148106           check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    149107           case $check4 in
Note: See TracChangeset for help on using the changeset viewer.