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/runcallisto

    r7232 r7233  
    4646
    4747scriptlogpath=$logpath/run/callisto/`date +%Y/%m/%d`
    48 if [ ! -d $scriptlogpath ]
    49 then
    50   mkdir -pv $scriptlogpath
    51   if [ ! -d $scriptlogpath ]
    52   then
    53      echo "could not make scriptlogpath "$scriptlogpath
    54      exit
    55   fi
    56 fi
    57 
     48makedir $scriptlogpath
    5849scriptlog=$scriptlogpath/runcallisto-$datetime.log
    5950
    6051date >> $scriptlog 2>&1
    6152
    62 
    63 if [ ! -d $getstatuslogpath ]
    64 then
    65   mkdir -pv $getstatuslogpath >> $scriptlog 2>&1
    66   if [ ! -d $getstatuslogpath ]
    67   then
    68      echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1
    69      date  >> $scriptlog 2>&1
    70      exit
    71   fi
    72 fi
     53makedir $getstatuslogpath >> $scriptlog 2>&1
    7354
    7455cd $mars
     
    178159  outpath="$datapath/callisto/$no/$no2"
    179160  echo "outpath: "$outpath >> $scriptlog 2>&1
    180   if [ ! -d $outpath ]
    181   then
    182     mkdir -pv $outpath >> $scriptlog 2>&1
    183     if [ ! -d $outpath ]
    184     then
    185        echo "could not make outpath $outpath -> continue " >> $scriptlog 2>&1
    186        continue
    187     fi
    188   fi
     161  makedir $outpath >> $scriptlog 2>&1
     162
    189163  sequfile="$sequpath/$no/sequence$no2.txt"
    190164  echo "sequfile: "$sequfile >> $scriptlog 2>&1
     
    216190         
    217191          merpplogpath=$outpath"/merpplogs"
    218           if [ ! -d $merpplogpath ]
    219           then
    220             mkdir -pv $merpplogpath >> $scriptlog 2>&1
    221             if [ ! -d $merpplogpath ]
    222             then
    223                echo "could not make merpplogpath "$merpplogpath >> $scriptlog 2>&1
    224                continue
    225             fi
    226           fi
     192          makedir $merpplogpath >> $scriptlog 2>&1
    227193         
    228194          for calfile in ${calfiles[@]}
     
    279245          echo "inserting the status for callisto for sequence $sequence into the db" >> $scriptlog 2>&1
    280246          setstatuslogpath=$logpath/setstatus/callisto/$no
    281           if [ ! -d $setstatuslogpath ]
    282           then
    283             mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
    284             if [ ! -d $setstatuslogpath ]
    285             then
    286                echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
    287                continue
    288             fi
    289           fi
     247          makedir $setstatuslogpath >> $scriptlog 2>&1
    290248          setstatuslog=$setstatuslogpath/setstatus-callisto-$no2.log
     249
    291250          check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    292251          case $check4 in
Note: See TracChangeset for help on using the changeset viewer.