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_exp.pl

    r11151 r11297  
    3030    'caches'        => \$cache,
    3131    'exp_tag|e=s'   => \$exptag,
     32    'dbname|d=s'    => \$dbname,# Database name   
    3233    'no-update'     => \$no_update
    3334) or pod2usage( 2 );
     
    9697{
    9798    my $command = "$p0tool -processedimfile -exp_tag $exptag";
     99    $command .= " -dbname $dbname" if defined $dbname;
    98100    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    99101        cache_run(command => $command, verbose => 1);
     
    199201    }
    200202
     203    push @command, "-dbname", $dbname if defined $dbname;
     204
    201205    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    202206        cache_run(command => \@command, verbose => 1);
     
    243247    my $exit_code = $_[1];
    244248    if ($exp_tag) {
    245         system ("$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code");
     249        my $command = "$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code";
     250        $command .= " -dbname $dbname" if defined $dbname;
     251        system($command);
    246252    }
    247253    exit $exit_code;
Note: See TracChangeset for help on using the changeset viewer.