IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2007, 2:55:43 PM (19 years ago)
Author:
Paul Price
Message:

Adding -dbname to all scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/phase0_imfile.pl

    r11212 r11297  
    3131use Pod::Usage qw( pod2usage );
    3232
    33 my ($cache, $exp_tag, $class_id, $uri, $workdir, $no_update);
     33my ($cache, $exp_tag, $class_id, $uri, $workdir, $dbname, $no_update);
    3434
    3535GetOptions(
     
    3838    'class_id|i=s'  => \$class_id,
    3939    'uri|u=s'       => \$uri,
    40     'workdir|w=s'   => \$workdir,
     40    'workdir|w=s'   => \$workdir, # Working directory for output files
     41    'dbname|d=s'    => \$dbname,# Database name
    4142    'no-update'     => \$no_update
    4243) or pod2usage( 2 );
     
    185186    }
    186187
     188    push @command, "-dbname", $dbname if defined $dbname;
     189
    187190    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    188191        run(command => \@command, verbose => 1);
     
    219222    my $exit_code = $_[2];
    220223    if ($exp_tag && $class_id) {
    221         system ("$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code");
     224        my $command = "$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code";
     225        $command .= " -dbname $dbname" if defined $dbname;
     226        system ($command);
    222227    }
    223228    exit $exit_code;
Note: See TracChangeset for help on using the changeset viewer.