Index: trunk/Mars/datacenter/scripts/copyoutput
===================================================================
--- trunk/Mars/datacenter/scripts/copyoutput	(revision 10044)
+++ 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
