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

    r7232 r7233  
    3838getstatuslogpath=$logpath/getstatus/correct_raw_time/$year
    3939getstatuslog=$getstatuslogpath/getstatus-$table-$column-$datetime.log
    40 
    41 if [ ! -d $getstatuslogpath ]
    42 then
    43   mkdir -pv $getstatuslogpath
    44   if [ ! -d $getstatuslogpath ]
    45   then
    46      echo "could not make getstatuslogpath "$getstatuslogpath
    47      exit
    48   fi
    49 fi
    50 
     40makedir $getstatuslogpath >> $scriptlog 2>&1
    5141
    5242if [ -e $listpath/ToDo-$table-$column.txt ]
     
    8676  outpath=`dirname $outfile`
    8777  echo "outpath:"$outpath
    88   if [ ! -d $outpath ]
    89   then
    90     mkdir -pv $outpath
    91     if [ ! -d $outpath ]
    92     then
    93        echo "could not make outpath "$outpath
    94        continue
    95     fi
    96   fi
     78  makedir $outpath
     79
    9780  timecorrpath=$outpath"/timecorrlogs"
    9881  echo "timecorrpath: "$timecorrpath
    99   if [ ! -d $timecorrpath ]
    100   then
    101     mkdir -pv $timecorrpath
    102     if [ ! -d $timecorrpath ]
    103     then
    104        echo "could not make timecorrpath "$timecorrpath
    105        continue
    106     fi
    107   fi
     82  make dir $timecorrpath
    10883 
    10984  check1=0
     
    11792          setstatuspath=$logpath/setstatus/correct_raw_time/$no
    11893          echo "setstatuspath: "$setstatuspath
    119           if [ ! -d $setstatuspath ]
    120           then
    121             mkdir -pv $setstatuspath
    122             if [ ! -d $setstatuspath ]
    123             then
    124                echo "could not make setstatuspath $setstatuspath -> continue "
    125                continue
    126             fi
    127           fi
     94          makedir $setstatuspath
     95
    12896          check2=`root -q -b $macrospath/setstatus.C+\("\"$run\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuspath/setstatus-correct_raw_time-$run.log | grep int | sed -e 's/(int)//'`
    12997          case $check2 in
Note: See TracChangeset for help on using the changeset viewer.