Index: trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(revision 7902)
+++ trunk/MagicSoft/Mars/datacenter/scripts/writesequencefiles	(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 the sequence file is written for each sequence in the todolist using
 # the macro writesequencefile.C
@@ -41,8 +41,6 @@
 set -C
 
-table=SequenceProcessStatus
 column=fSequenceFileWritten
 
-todofile=$listpath/ToDo-$table-$column.txt
 lockfile=$lockpath/lock-$program.txt
 
@@ -53,11 +51,9 @@
 date >> $scriptlog 2>&1
 
-cd $mars
-
 # check if script is already running
 checklock  >> $scriptlog 2>&1
 
 # get todo list
-getdolist  >> $scriptlog 2>&1
+gettodo  >> $scriptlog 2>&1
 
 # get sequences from todo file
@@ -68,4 +64,6 @@
    finish >> $scriptlog 2>&1
 fi
+
+cd $mars
 
 # write sequence file for all sequences in todo file
