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

    r16196 r16308  
    3333
    3434# Parse the command-line
    35 my ($det_id, $iter, $class_id, $value, $input_uri, $camera, $det_type, $outroot, $dbname, $no_update, $no_op);
     35my ( $det_id, $iter, $class_id, $value, $input_uri, $camera, $det_type, $outroot, $dbname, $verbose,
     36     $no_update, $no_op );
    3637GetOptions(
    3738    'det_id|d=s'        => \$det_id,     # Detrend ID                           
     
    4445    'outroot|w=s'       => \$outroot,    # output file base name
    4546    'dbname|d=s'        => \$dbname,     # Database name                               
     47    'verbose'           => \$verbose,   # Print to stdout
    4648    'no-update'         => \$no_update,  # Don't update the database           
    4749    'no-op'             => \$no_op,      # Don't do any operations               
     
    117119
    118120    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    119         run(command => $command, verbose => 1);
     121        run(command => $command, verbose => $verbose);
    120122    unless ($success) {
    121123        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    160162unless ($no_update) {
    161163    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    162         run(command => $command, verbose => 1);
     164        run(command => $command, verbose => $verbose);
    163165    unless ($success) {
    164166        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.