Index: trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/mcsequences	(revision 7938)
+++ trunk/MagicSoft/Mars/datacenter/scripts/mcsequences	(revision 7944)
@@ -34,13 +34,11 @@
 # 
 
+source `dirname $0`/sourcefile
+printprocesslog "INFO starting $0"
 program=mcsequences
-source `dirname $0`/sourcefile
 
 set -C
 
-scriptlogpath=$runlogpath/$program
-makedir $scriptlogpath
-scriptlog=$scriptlogpath/$program`date +%F`.log
-
+scriptlog=$runlogpath/$program`date +%F`.log
 date >> $scriptlog 2>&1
 
@@ -49,9 +47,9 @@
 checklock  >> $scriptlog 2>&1
 
-
 mcpath=/montecarlo/rawfiles
 mcsequpath=/montecarlo/sequences
 
 # find montecarlo directories, build one sequence per directory and write sequence file
+printprocesslog "INFO building one sequence per mcdirectory"
 dirs=`find $mcpath -type d`
 for dir in ${dirs[@]}
@@ -83,4 +81,5 @@
    sequfile=$sequpath/sequence$no2.txt
    echo "writing sequfile "$sequfile >> $scriptlog 2>&1
+   printprocesslog "INFO writing sequencefile $sequfile"
    
    echo "Sequence:        $firstrun" > $sequfile
@@ -93,9 +92,4 @@
 done
 
+finish >> $scriptlog 2>&1
 
-rm -v $lockfile >> $scriptlog 2>&1
-
-set +C
-
-date  >> $scriptlog 2>&1
-
