IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27843 for trunk/ippToPsps


Ignore:
Timestamp:
May 3, 2010, 10:55:39 AM (16 years ago)
Author:
rhenders
Message:

Added 'end' argument for deleting stuff in bulk more carefully

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/scripts/removeFromDatastore.pl

    r27730 r27843  
    66use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    77
    8 my $start;
    9 my $product;
     8my $start = undef;
     9my $end = undef;
     10my $product = "PSPS_test";
    1011
    1112GetOptions(
    1213        'start|s=s' => \$start,
     14        'end|e=s' => \$end,
    1315        'product|p=s' => \$product,
    1416        )  or pod2usage( 2 );
    1517
     18pod2usage(
     19        -msg => "\n   Required options:\n\n".
     20        "--start<init|det|diff|stack>\n".
     21        "--end <path>\n".
     22        "--product <datastoreProduct>\n",
     23        -exitval => 3
     24        ) unless
     25defined $product and
     26defined $start and
     27defined $end;
     28
     29
    1630my $i;
    1731
    18 for ($i = $start; $i < 100000; $i++) {
     32for ($i=$start; $i<$end+1; $i++) {
    1933
    2034    my $job = sprintf("J%06d", $i);
Note: See TracChangeset for help on using the changeset viewer.