Index: /trunk/Mars/Changelog
===================================================================
--- /trunk/Mars/Changelog	(revision 10047)
+++ /trunk/Mars/Changelog	(revision 10048)
@@ -18,4 +18,13 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2010/11/03 Daniela Dorner
+
+   * datacenter/scripts/copyoutput:
+     - changed query so that only successfully processed files are 
+       copied
+     - removed logging output to use script in cronjob in Dortmund
+
+
 
  2010/10/28 Thomas Bretz
Index: /trunk/Mars/datacenter/scripts/copyoutput
===================================================================
--- /trunk/Mars/datacenter/scripts/copyoutput	(revision 10047)
+++ /trunk/Mars/datacenter/scripts/copyoutput	(revision 10048)
@@ -79,5 +79,5 @@
    
    # get primaries for which output has to be copied
-   query="SELECT "${prims[@]}" FROM "$step"Status WHERE NOT ISNULL(fStartTime) AND NOT ISNULL(fStopTime) AND ISNULL(fAvailable) AND fProcessingSiteKEY="$sitekey
+   query="SELECT "${prims[@]}" FROM "$step"Status WHERE NOT ISNULL(fStartTime) AND NOT ISNULL(fStopTime) AND ISNULL(fAvailable) AND ISNULL(fReturnCode) AND fProcessingSiteKEY="$sitekey
    primstocopy=( `sendquery` )
    num=`expr ${#primstocopy[@]} / ${#prims[@]} `
@@ -94,5 +94,4 @@
       filenum=${primstocopy[$s+$s+1]}
       printprocesslog "INFO copying corsika files for run "$runnum" file "$filenum
-      echo "INFO copying corsika files for run "$runnum" file "$filenum
       extension=`printf %08d $runnum | cut -c 1-4`/`printf %08d $runnum | cut -c 5-8`
       cd $mcpath/$program
