Index: trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7501)
+++ trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles	(revision 7576)
@@ -33,8 +33,14 @@
 
 # change permission for files 
-# perhaps needed as the tapes are read by the user tape 
 ssh tape@dc07 chmod -R g+w /magic/datacenter/fromtape/rawdata/*
 # output for chmod with -v or -c (only changes)
-# for files transferes via internet perhaps also needed for user lapalma
+
+#find directories, which have to be copied
+dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6`
+# change permission for this dirctories
+ssh lapalma@mercury chmod -R g+w $dirs
+# move directories to the tapedirectory
+mv -v $dirs /magic/datacenter/fromtape/rawdata/
+
 
 # find rawfiles
