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

    r16247 r16308  
    3333use Pod::Usage qw( pod2usage );
    3434
    35 my ($diff_id, $dbname, $workdir, $no_update, $no_op);
     35my ($diff_id, $dbname, $workdir, $verbose, $no_update, $no_op);
    3636GetOptions(
    3737    'diff_id|d=s'       => \$diff_id, # Diff identifier
    3838    'dbname|d=s'        => \$dbname, # Database name
    3939    'workdir|w=s'       => \$workdir,   # Working directory, for output files
     40    'verbose'           => \$verbose,   # Print to stdout
    4041    'no-update'         => \$no_update, # Don't update the database?
    4142    'no-op'             => \$no_op, # Don't do any operations?
     
    7475    $command .= " -dbname $dbname" if defined $dbname;
    7576    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    76         run(command => $command, verbose => 1);
     77        run(command => $command, verbose => $verbose);
    7778    unless ($success) {
    7879        $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);
     
    222223       
    223224        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    224             run(command => $command, verbose => 1);
     225            run(command => $command, verbose => $verbose);
    225226        unless ($success) {
    226227            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    235236
    236237        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    237             run(command => $command, verbose => 1);
     238            run(command => $command, verbose => $verbose);
    238239        unless ($success) {
    239240            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    255256        my $command = "$difftool -adddiffskyfile -diff_id $diff_id -code $exit_code";
    256257        $command .= " -dbname $dbname" if defined $dbname;
    257         run(command => $command, verbose => 1);
     258        run(command => $command, verbose => $verbose);
    258259    }
    259260    exit $exit_code;
Note: See TracChangeset for help on using the changeset viewer.