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

    r16196 r16308  
    3737use Pod::Usage qw( pod2usage );
    3838
    39 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $no_update, $no_op);
     39my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op);
    4040GetOptions(
    4141           'det_id|d=s'        => \$det_id,
     
    4343           'det_type|t=s'      => \$det_type,
    4444           'camera=s'          => \$camera,
    45            'outroot|w=s'   => \$outroot,   # output file base name
     45           'outroot|w=s'       => \$outroot,   # output file base name
    4646           'filter=s'          => \$filter,
    4747           'dbname|d=s'        => \$dbname, # Database name
     48           'verbose'           => \$verbose,   # Print to stdout
    4849           'no-update'         => \$no_update,
    4950           'no-op'             => \$no_op,
     
    106107    $command .= " -dbname $dbname" if defined $dbname;
    107108    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    108         run(command => $command, verbose => 1);
     109        run(command => $command, verbose => $verbose);
    109110    unless ($success) {
    110111        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    261262        # Update
    262263        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    263             run(command => $command, verbose => 1);
     264            run(command => $command, verbose => $verbose);
    264265        unless ($success) {
    265266            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    308309unless ($no_update) {
    309310    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    310         run(command => $command, verbose => 1);
     311        run(command => $command, verbose => $verbose);
    311312    unless ($success) {
    312313        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.