Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7283)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7284)
@@ -25,4 +25,8 @@
    * datacenter/scripts/runcallisto:
      - improved locking
+
+   * datacenter/macros/getdolist.C:
+     - included removing of file for the case, that there's something 
+       strange happening in the shell script
 
 
Index: trunk/MagicSoft/Mars/datacenter/macros/getdolist.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/getdolist.C	(revision 7283)
+++ trunk/MagicSoft/Mars/datacenter/macros/getdolist.C	(revision 7284)
@@ -135,4 +135,5 @@
         {
             filename=Form("%s/ToDo-%s-%s-%s.txt", listpath.Data(), table.Data(), column.Data(), (*row)[0]);
+            gSystem->Unlink(filename);
             ofstream fout(filename, ios::app);
             if (!fout)
Index: trunk/MagicSoft/Mars/datacenter/scripts/runcallisto
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7283)
+++ trunk/MagicSoft/Mars/datacenter/scripts/runcallisto	(revision 7284)
@@ -73,11 +73,17 @@
    esac
 
-   echo "getting list..." >> $scriptlog 2>&1
-   check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'`
-   
-   case $check0 in 
-       1)   echo "check0=$check0 -> everything ok -> run callisto" >> $scriptlog 2>&1;;
-       *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
-   esac
+   if  ls $todofile-[1-9]*.txt >> $scriptlog 2>&1
+   then
+      echo "other file(s) on disk " >> $scriptlog 2>&1
+      echo " -> choose one file and start calibrating" >> $scriptlog 2>&1
+   else
+      echo "getting list..." >> $scriptlog 2>&1
+      check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'`
+
+      case $check0 in
+          1)   echo "check0=$check0 -> everything ok -> run callisto" >> $scriptlog 2>&1;;
+          *)   echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;;
+      esac
+   fi
    rm -v $lockpath/lock-getting-callisto-list.txt >> $scriptlog 2>&1
 fi
