Index: trunk/ippScripts/scripts/detrend_norm_apply.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 39504)
+++ trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 39505)
@@ -173,5 +173,10 @@
 
     # replicate output file
-    $ipprc->replicate_file($output) or &my_die("failed to replicate: $output\n", $det_id,$iter,$class_id,$PS_EXIT_SYS_ERROR);
+    my $scheme = file_scheme ($output);
+    if ($scheme eq "neb") { 
+	$ipprc->replicate_file($output) or &my_die("failed to replicate: $output\n", $det_id,$iter,$class_id,$PS_EXIT_SYS_ERROR);
+    } else {
+	print "output $output is a file or path, not a nebulous key: skipping replication\n"; 
+    }
 }
 
@@ -223,4 +228,13 @@
 }
 
+# Return the scheme used for a filename (copied from PS-IPP-Config/lib/PS/IPP/Config.pm
+sub file_scheme
+{
+    my $name = shift;                # Filename for which to get the scheme
+    my ($scheme) = $name =~ /^(path|neb|file):/; # The scheme, e.g., file://, path://
+    # $scheme may be undef if the input doesn't contain one of the above recognised schemes
+    unless (defined($scheme)) { $scheme = "none"; }
+    return $scheme;
+}
 
 END {
