IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2008, 11:47:19 AM (18 years ago)
Author:
Paul Price
Message:

Added verbose flags to scripts.

File:
1 edited

Legend:

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

    r16196 r16308  
    3232use Pod::Usage qw( pod2usage );
    3333
    34 my ($det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot, $dbname, $reduction, $no_update, $no_op);
     34my ( $det_id, $iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot,
     35     $dbname, $reduction, $verbose, $no_update, $no_op );
    3536GetOptions(
    3637    'det_id|d=s'        => \$det_id,
     
    4748    'dbname|d=s'        => \$dbname, # Database name
    4849    'reduction=s'       => \$reduction, # Reduction class
     50    'verbose'           => \$verbose,   # Print to stdout
    4951    'no-update'         => \$no_update,
    5052    'no-op'             => \$no_op,
     
    162164
    163165    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    164         run(command => $command, verbose => 1);
     166        run(command => $command, verbose => $verbose);
    165167    unless ($success) {
    166168        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    188190    $command = "$ppStats -recipe PPSTATS RESIDUAL $bin2Name";
    189191    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    190         run(command => $command, verbose => 1);
     192        run(command => $command, verbose => $verbose);
    191193    unless ($success) {
    192194        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    217219unless ($no_update) {
    218220    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    219         run(command => $command, verbose => 1);
     221        run(command => $command, verbose => $verbose);
    220222    unless ($success) {
    221223        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.