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

    r15314 r16308  
    3232use Pod::Usage qw( pod2usage );
    3333
    34 my ($det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $dbname, $workdir, $reduction, $no_update, $no_op);
     34my ( $det_id, $exp_id, $class_id, $det_type, $exp_tag, $input_uri, $camera, $dbname, $workdir, $reduction,
     35     $verbose, $no_update, $no_op );
    3536GetOptions(
    3637    'det_id|d=s'        => \$det_id,
     
    4546    'dbname|d=s'        => \$dbname, # Database name
    4647    'workdir|w=s'       => \$workdir, # Working directory, for output files
     48    'verbose'           => \$verbose,   # Print to stdout
    4749    'no-update'         => \$no_update,
    4850    'no-op'             => \$no_op,
     
    9193
    9294    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    93         run(command => $command, verbose => 1);
     95        run(command => $command, verbose => $verbose);
    9496    unless ($success) {
    9597        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    111113unless ($no_update) {
    112114    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    113         run(command => $command, verbose => 1);
     115        run(command => $command, verbose => $verbose);
    114116    unless ($success) {
    115117        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.