IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33064


Ignore:
Timestamp:
Jan 9, 2012, 5:53:11 PM (14 years ago)
Author:
bills
Message:

add option to actually perform the repair operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/repair_bad_instance

    r33041 r33064  
    1111use PS::IPP::Config 1.01 qw( :standard );
    1212
     13my $dbname = 'gpc1';
     14
    1315
    1416my ( $exp_id,
     
    1719     $go,
    1820     );
    19 my $dbname ='gpc1';
    2021
    2122# the char to the right of the bar may be used as a single - alias for the longer name
     
    2425           'exp_id|e=s'     => \$exp_id,
    2526           'class_id|c=s'   => \$class_id,
    26            'repair       => \$go,
     27           'repair|r'       => \$go,
    2728           'pretend'        => \$pretend,
    2829) or pod2usage( 2 );
     
    8687} else {
    8788    print "No good instances of $uri found. To fix run:\n";
    88     my $cmd = "regtool -updateprocessedimfile -set_ignored -exp_id $exp_id -class_id $class_id\n";
     89    my $cmd = "regtool -dbname $dbname -updateprocessedimfile -set_ignored -exp_id $exp_id -class_id $class_id\n";
    8990    print "$cmd\n";
    9091    if ($go) {
     
    9596
    9697if ($fixed) {
    97     my $cmd =  "chiptool -revertprocessedimfile -exp_id $exp_id";
     98    my $cmd =  "chiptool -dbname $dbname -revertprocessedimfile -exp_id $exp_id";
    9899    print "$cmd\n";
    99100    system $cmd;
Note: See TracChangeset for help on using the changeset viewer.