Index: trunk/MagicSoft/Mars/datacenter/scripts/fillstar
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillstar	(revision 7233)
@@ -43,29 +43,10 @@
 
 scriptlogpath=$logpath/run/fillstar/`date +%Y/%m/%d`
-if [ ! -d $scriptlogpath ]
-then
-  mkdir -pv $scriptlogpath 
-  if [ ! -d $scriptlogpath ]
-  then 
-     echo "could not make scriptlogpath "$scriptlogpath 
-     exit
-  fi
-fi
-
+makedir $scriptlogpath
 scriptlog=$scriptlogpath/runfillstar-$datetime.log
 
 date >> $scriptlog 2>&1
 
-
-if [ ! -d $getstatuslogpath ]
-then
-  mkdir -pv $getstatuslogpath >> $scriptlog 2>&1
-  if [ ! -d $getstatuslogpath ]
-  then 
-     echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1
-     date  >> $scriptlog 2>&1
-     exit
-  fi
-fi
+makedir $getstatuslogpath >> $scriptlog 2>&1
 
 cd $mars
@@ -111,13 +92,5 @@
    fillstarlogpath=$logpath/fillstar/$no
    echo "fillstarlogpath: "$fillstarlogpath >> $scriptlog 2>&1
-   if [ ! -d $fillstarlogpath ]
-   then
-     mkdir -pv $fillstarlogpath >> $scriptlog 2>&1
-     if [ ! -d $fillstarlogpath ]
-     then
-        echo "could not make fillstarlogpath $fillstarlogpath -> continue " >> $scriptlog 2>&1
-        continue
-     fi
-   fi
+   makedir $fillstarlogpath >> $scriptlog 2>&1
    fillstarlog=$fillstarlogpath/fillstar-$sequence.log
 
@@ -128,14 +101,7 @@
            echo "-> inserting the status for fillstar for sequence $sequence into the db" >> $scriptlog 2>&1
            setstatuslogpath=$logpath/setstatus/fillstar/$no
-           if [ ! -d $setstatuslogpath ]
-           then
-             mkdir -pv $setstatuslogpath >> $scriptlog 2>&1
-             if [ ! -d $setstatuslogpath ]
-             then
-                echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1
-                continue
-             fi
-           fi
+           makedir $setstatuslogpath >> $scriptlog 2>&1
            setstatuslog=$setstatuslogpath/setstatus-fillstar-$no2.log
+
            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
            case $check4 in
