Index: trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7902)
+++ trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck	(revision 7909)
@@ -29,5 +29,5 @@
 #
 # After checking, if the script is already running, the todolist is 
-# written by using the macro getdolist.C
+# written 
 # Then for each run the following steps are done: 
 #  - filldotraw.C
@@ -45,10 +45,6 @@
 set -C
 
-cd $mars
-
-table=RunProcessStatus
 column=fDataCheckDone
 
-todofile=$listpath/ToDo-$table-$column
 lockfile=$lockpath/lock-getting-$program-list.txt
 
@@ -69,5 +65,5 @@
    checklock "getting list of" >> $scriptlog 2>&1
    # get todo list
-   getdolist  >> $scriptlog 2>&1
+   gettodolist  >> $scriptlog 2>&1
    rm -v $lockfile >> $scriptlog 2>&1
 fi
@@ -114,4 +110,6 @@
    finish >> $scriptlog 2>&1
 fi
+
+cd $mars
 
 # processing run(s)
