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

    r16196 r16308  
    3535use Pod::Usage qw( pod2usage );
    3636
    37 my ($det_id, $exp_id, $det_type, $exp_tag, $camera, $outroot, $dbname, $reduction, $no_update, $no_op);
     37my ( $det_id, $exp_id, $det_type, $exp_tag, $camera, $outroot, $dbname, $reduction, $verbose, $no_update,
     38     $no_op );
    3839GetOptions(
    3940    'det_id|d=s'        => \$det_id,
     
    4546    'dbname|d=s'        => \$dbname, # Database name
    4647    'reduction|=s'      => \$reduction,
     48    'verbose'           => \$verbose,   # Print to stdout
    4749    'no-update'         => \$no_update,
    4850    'no-op'             => \$no_op,
     
    99101    $command .= " -dbname $dbname" if defined $dbname;
    100102    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    101         run(command => $command, verbose => 1);
     103        run(command => $command, verbose => $verbose);
    102104    unless ($success) {
    103105        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    145147    $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
    146148    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    147         run(command => $command, verbose => 1);
     149        run(command => $command, verbose => $verbose);
    148150    unless ($success) {
    149151        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    155157    $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
    156158    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    157         run(command => $command, verbose => 1);
     159        run(command => $command, verbose => $verbose);
    158160    unless ($success) {
    159161        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    174176unless ($no_update) {
    175177    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    176         run(command => $command, verbose => 1);
     178        run(command => $command, verbose => $verbose);
    177179    unless ($success) {
    178180        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.