IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2007, 11:05:03 AM (19 years ago)
Author:
eugene
Message:

adjust to use modified -adddetrunsummary api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_reject_exp.pl

    r14048 r14083  
    276276}
    277277
     278## add the summary statistics, and request a new iteration if needed
    278279$command = "$dettool -adddetrunsummary";
    279280$command .= " -det_id $det_id";
     
    281282$command .= " -accept" if $master;
    282283$command .= " -dbname $dbname" if defined $dbname;
     284$command .= " -again" unless $stop;
    283285
    284286# add in the elements from the selected stats above
     
    298300        exit($error_code);
    299301    }
    300 
    301     $command = "$dettool -updatedetrun -det_id $det_id";
    302     if ($stop) {
    303         $command .= ' -state stop';
    304     } else {
    305         $command .= ' -again';
    306     }
    307     $command .= " -dbname $dbname" if defined $dbname;
    308 
    309     ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    310         run(command => $command, verbose => 1);
    311     unless ($success) {
    312         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    313         warn("Unable to perform dettool -updatedetrun: $error_code");
    314         exit($error_code);
    315     }
    316302} else {
    317303    print "skipping command: $command\n";
Note: See TracChangeset for help on using the changeset viewer.