Index: trunk/ippScripts/scripts/detrend_resid_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19627)
+++ trunk/ippScripts/scripts/detrend_resid_imfile.pl	(revision 19642)
@@ -181,5 +181,5 @@
         &my_die("Unable to perform ppStatsFromMetadata: $error_code", $det_id, $iter, $exp_id, $class_id, $error_code);
     }
-    $cmdflags = $stdout_buf; chomp $cmdflags;
+    $cmdflags = "@$stdout_buf"; chomp $cmdflags;
 
     # run ppStats on the binned image
@@ -191,5 +191,5 @@
         &my_die("Unable to perform ppStats: $error_code", $det_id, $iter, $exp_id, $class_id, $error_code);
     }
-    $cmdflags .= $stdout_buf; chomp $cmdflags;
+    $cmdflags .= " @$stdout_buf"; chomp $cmdflags;
 }
 
@@ -206,5 +206,5 @@
 $command .= " -path_base $outroot";
 $command .= " -dbname $dbname" if defined $dbname;
-$command .= $cmdflags;
+$command .= " $cmdflags";
 
 # Add the processed file to the database
