Index: trunk/ippScripts/scripts/detrend_reject_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 14081)
+++ trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 14083)
@@ -276,4 +276,5 @@
 }
 
+## add the summary statistics, and request a new iteration if needed
 $command = "$dettool -adddetrunsummary";
 $command .= " -det_id $det_id";
@@ -281,4 +282,5 @@
 $command .= " -accept" if $master;
 $command .= " -dbname $dbname" if defined $dbname;
+$command .= " -again" unless $stop; 
 
 # add in the elements from the selected stats above
@@ -298,20 +300,4 @@
 	exit($error_code);
     }
-
-    $command = "$dettool -updatedetrun -det_id $det_id";
-    if ($stop) {
-	$command .= ' -state stop';
-    } else {
-	$command .= ' -again';
-    }
-    $command .= " -dbname $dbname" if defined $dbname;
-
-    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-	run(command => $command, verbose => 1);
-    unless ($success) {
-	$error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
-	warn("Unable to perform dettool -updatedetrun: $error_code");
-	exit($error_code);
-    }
 } else {
     print "skipping command: $command\n";
