Index: trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7938)
+++ trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7944)
@@ -31,22 +31,16 @@
 
 source `dirname $0`/sourcefile
+printprocesslog "INFO starting $0"
+program=movingrawfiles
 
 set -C
+umask 0002
 
-program=movingrawfiles
-
-lockfile=$lockpath/lock-$program.txt
-
-scriptlogpath=$runlogpath/$program
-makedir $scriptlogpath
-scriptlog=$scriptlogpath/$program-$datetime.log
-
+scriptlog=$runlogpath/$program-$datetime.log
 date >> $scriptlog 2>&1
 
 # check if script is already running
+lockfile=$lockpath/lock-$program.txt
 checklock  >> $scriptlog 2>&1
-
-
-umask 0002
 
 # change permission for files 
@@ -54,4 +48,5 @@
 # output for chmod with -v or -c (only changes)
 
+printprocesslog "INFO moving directories from fromlapalma to fromtape"
 #find directories, which have to be copied
 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
@@ -74,4 +69,5 @@
 fi
 
+printprocesslog "INFO moving moving rawfiles to $datapath/rawfiles"
 for rawfile in $rawfiles
 do 
@@ -87,4 +83,5 @@
 rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1 
 
+printprocesslog "INFO launching filesondisk"
 echo "launching filesondisk" >> $scriptlog 2>&1 
 $scriptspath/filesondisk&
