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_process_imfile.pl

    r16209 r16308  
    3232use Pod::Usage qw( pod2usage );
    3333
    34 my ($det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $outroot, $dbname, $reduction, $no_update, $no_op);
     34my ( $det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $outroot, $dbname, $reduction,
     35     $verbose, $no_update, $no_op );
    3536GetOptions(
    3637    'det_id|d=s'        => \$det_id,
     
    4445    'dbname|d=s'        => \$dbname, # Database name
    4546    'reduction=s'       => \$reduction, # Reduction class
     47    'verbose'           => \$verbose,   # Print to stdout
    4648    'no-update'         => \$no_update,
    4749    'no-op'             => \$no_op,
     
    113115
    114116    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    115         run(command => $command, verbose => 1);
     117        run(command => $command, verbose => $verbose);
    116118    unless ($success) {
    117119        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    152154unless ($no_update) {
    153155    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    154         run(command => $command, verbose => 1);
     156        run(command => $command, verbose => $verbose);
    155157    unless ($success) {
    156158        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.