Index: trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto	(revision 7233)
@@ -43,13 +43,5 @@
 
 scriptlogpath=$logpath/run/fillcallisto/`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/runfillcallisto-$datetime.log
@@ -57,15 +49,5 @@
 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
@@ -112,13 +94,5 @@
    fillcallistologpath=$logpath/fillcallisto/$no
    echo "fillcallistologpath: "$fillcallistologpath >> $scriptlog 2>&1
-   if [ ! -d $fillcallistologpath ]
-   then
-     mkdir -pv $fillcallistologpath >> $scriptlog 2>&1
-     if [ ! -d $fillcallistologpath ]
-     then
-        echo "could not make fillcallistologpath $fillcallistologpath -> continue " >> $scriptlog 2>&1
-        continue
-     fi
-   fi
+   makedir $fillcallistologpath >> $scriptlog 2>&1
    fillcaliblog=$fillcallistologpath/fillcalib-$sequence.log
    fillsignallog=$fillcallistologpath/fillsignal-$sequence.log
@@ -139,14 +113,7 @@
            echo "-> inserting the status for fillcallisto for sequence $sequence into the db" >> $scriptlog 2>&1
            setstatuslogpath=$logpath/setstatus/fillcallisto/$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-fillcallisto
+
            check4=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog-$sequence.log | grep int | sed -e 's/(int)//'`
            case $check4 in
