IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36435 for trunk


Ignore:
Timestamp:
Jan 14, 2014, 12:16:00 PM (12 years ago)
Author:
watersc1
Message:

Add option to select which volume index to work on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neb_rawOTA_host_scan.pl

    r36434 r36435  
    2121    ) or die "Unable to connect to database $DBI::errstr\n";
    2222
    23 my ($host,$min_ins_id,$verbose,$limit,$continue,$alt);
     23my ($host,$min_ins_id,$verbose,$limit,$continue,$alt,$vol_label);
    2424$min_ins_id = 0;
    2525$verbose = 0;
     
    2727$continue = 0;
    2828$alt = 0;
     29$vol_label = 0;
    2930
    3031GetOptions(
     
    3536    'continue|c'    => \$continue,
    3637    'alternate|a'   => \$alt,
     38    'vol_label|L=s'   => \$vol_label,
    3739    ) or pod2usage( 2 );
    3840pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     
    4143    defined($host);
    4244
    43 my $volume = $host . ".0";
     45my $volume = $host . "." . $vol_label;
    4446my $rr;
    4547
     
    8587    }
    8688    my $r_ins      = $db->selectall_arrayref( $ins_id_sth );
    87     my $last_ins_id = 0;
     89    my $last_ins_id = $max_ins_id;
    8890    $number = 0;
    8991    foreach $rr (@{ $r_ins }) {
     
    154156        $min_ins_id = $last_ins_id;
    155157    }
    156 } while (($continue && $number != 0) || ($min_ins_id <= $max_ins_id));
     158} while (($continue && $number != 0) || ($min_ins_id < $max_ins_id));
Note: See TracChangeset for help on using the changeset viewer.