IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34591 for trunk


Ignore:
Timestamp:
Oct 25, 2012, 11:09:49 AM (14 years ago)
Author:
bills
Message:

default verbosity to 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/fixburntool

    r34364 r34591  
    66use strict;
    77use warnings;
     8
    89use Carp;
    910use IPC::Cmd 0.36 qw( can_run run );
     
    2829my $class_id;
    2930my $dbname = 'gpc1';
    30 my $verbose = 1;
     31my $verbose = 0;
    3132GetOptions(
    3233    'exp_id|e=s'    => \$exp_id,
     
    3536) or pod2usage( 2 );
    3637
    37 die "usage: $0 (exp_id) (class_id)\n" unless $class_id and $exp_id;
     38die "usage: $0 --exp_id (exp_id) --class_id (class_id)\n" unless $class_id and $exp_id;
    3839
    3940$regtool  .= " -dbname gpc1 -exp_id $exp_id -class_id $class_id";
     
    4546    my $command = "$regtool -processedimfile";
    4647    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    47         run(command => $command, verbose => 0);
     48        run(command => $command, verbose => $verbose);
    4849    unless ($success) {
    4950        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    6869    my $command = "neb-stat $table";
    6970    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    70         run(command => $command, verbose => 0);
     71        run(command => $command, verbose => $verbose);
    7172    if ($success) {
    7273        $table_exists = 1;
     
    9697# print "$left $num $end\n";
    9798
    98 
    9999my $prev = $num - 1;
    100100my $prev_name = sprintf "$left%04d$end", $prev;
     
    105105# print "$prev_name $prev_uri\n";
    106106
    107 
    108107{
    109108    my $command = "$burntool --continue 10 --exp_id $exp_id --class_id $class_id --this_uri $uri --previous_uri $prev_uri";
    110109    print "$command\n";
    111110    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    112         run(command => $command, verbose => 0);
     111        run(command => $command, verbose => 1);
    113112    unless ($success) {
    114113        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.