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/warp_skycell.pl

    r16247 r16308  
    3737my $ipprc = PS::IPP::Config->new(); # IPP configuration
    3838
    39 my ($warp_id, $skycell_id, $tess_id, $camera, $dbname, $workdir, $no_update, $no_op, $save_temps);
     39my ($warp_id, $skycell_id, $tess_id, $camera, $dbname, $workdir, $verbose, $no_update, $no_op, $save_temps);
    4040GetOptions(
    4141    'warp_id|i=s'       => \$warp_id, # Warp identifier
     
    4545    'dbname|d=s'        => \$dbname, # Database name
    4646    'workdir|w=s'       => \$workdir, # Working directory, for output files
     47    'verbose'           => \$verbose,   # Print to stdout
    4748    'no-update'         => \$no_update, # Don't update the database?
    4849    'no-op'             => \$no_op, # Don't do any operations?
     
    8889    $command .= " -dbname $dbname" if defined $dbname;
    8990    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    90         run(command => $command, verbose => 1);
     91        run(command => $command, verbose => $verbose);
    9192    unless ($success) {
    9293        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    105106    my $command = "$ppConfigDump -camera $camera -dump-recipe PSWARP -";
    106107    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    107         run(command => $command, verbose => 1);
     108        run(command => $command, verbose => $verbose);
    108109    unless ($success) {
    109110        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    190191
    191192    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    192         run(command => $command, verbose => 1);
     193        run(command => $command, verbose => $verbose);
    193194    unless ($success) {
    194195        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    229230
    230231    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    231         run(command => $command, verbose => 1);
     232        run(command => $command, verbose => $verbose);
    232233    unless ($success) {
    233234        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    249250        my $command = "$warptool -addwarped -warp_id $warp_id -skycell_id $skycell_id -tess_id $tess_id -code $exit_code";
    250251        $command .= " -dbname $dbname" if defined $dbname;
    251         run(command => $command, verbose => 1);
     252        run(command => $command, verbose => $verbose);
    252253    }
    253254    exit $exit_code;
Note: See TracChangeset for help on using the changeset viewer.