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

    r16196 r16308  
    4343
    4444# parse the command-line options
    45 my ($det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $outroot, $dbname, $reduction, $no_update, $no_op);
     45my ( $det_id, $iter, $exp_id, $exp_tag, $det_type, $camera, $filter, $reject, $outroot, $dbname, $reduction,
     46     $verbose, $no_update, $no_op );
    4647GetOptions(
    4748           'det_id|d=s'        => \$det_id,
     
    5657           'dbname|d=s'        => \$dbname, # Database name
    5758           'reduction|=s'      => \$reduction,
     59           'verbose'           => \$verbose,   # Print to stdout
    5860           'no-update'         => \$no_update,
    5961           'no-op'             => \$no_op,
     
    124126    $command .= " -dbname $dbname" if defined $dbname;
    125127    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    126         run(command => $command, verbose => 1);
     128        run(command => $command, verbose => $verbose);
    127129    unless ($success) {
    128130        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    178180    $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
    179181    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    180         run(command => $command, verbose => 1);
     182        run(command => $command, verbose => $verbose);
    181183    unless ($success) {
    182184        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    188190    $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
    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);
     
    515517unless ($no_update) {
    516518    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    517         run(command => $command, verbose => 1);
     519        run(command => $command, verbose => $verbose);
    518520    unless ($success) {
    519521        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.