Index: trunk/MagicSoft/Mars/datacenter/scripts/runganymed
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runganymed	(revision 7232)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runganymed	(revision 7233)
@@ -44,13 +44,5 @@
 
 scriptlogpath=$logpath/run/ganymed/`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/runganymed-$datetime.log
@@ -58,15 +50,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
@@ -172,13 +154,6 @@
   outpath="$datapath/ganymed/$no/$no2"
   echo "outpath: "$outpath >> $scriptlog 2>&1
-  if [ ! -d $outpath ]
-  then
-    mkdir -pv $outpath >> $scriptlog 2>&1
-    if [ ! -d $outpath ]
-    then 
-       echo "could not make outpath $outpath -> continue " >> $scriptlog 2>&1
-       continue
-    fi
-  fi
+  makedir $outpath >> $scriptlog 2>&1
+
   datasetfile="$datasetpath/$no/dataset$no2.txt"
   echo "datasetfile: "$datasetfile >> $scriptlog 2>&1
@@ -201,14 +176,7 @@
           echo "-> inserting the status for ganymed for dataset $dataset into the db" >> $scriptlog 2>&1
           setstatuslogpath=$logpath/setstatus/ganymed/$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-ganymed-$no2.log
+
           check4=`root -q -b $macrospath/setstatus.C+\("\"$dataset\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
           case $check4 in
