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/phase3.pl

    r11110 r11297  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($exp_tag, $camera, $outpath, $no_update);
     21my ($exp_tag, $camera, $outpath, $dbname, $no_update);
    2222GetOptions(
    2323    'exp_tag|e=s'       => \$exp_tag,
    2424    'camera|c=s'        => \$camera,
    25     'outpath|o=s'   => \$outpath,
     25    'outpath|o=s'       => \$outpath,
     26    'dbname|d=s'        => \$dbname, # Database name
    2627    'no-update'         => \$no_update
    2728) or pod2usage( 2 );
     
    5253{
    5354    my $command = "$p3tool -pendingimfile -exp_tag $exp_tag"; # Command to run
     55    $command .= " -dbname $dbname" if defined $dbname;
    5456    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    5557        run(command => $command, verbose => 1);
     
    149151        "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev " .
    150152        "-sigma_ra 0.0 -sigma_dec 0.0 -nastro 0 -zp_mean 0.0 -zp_stdev 0.0"; # Command to run
     153    $command .= " -dbname $dbname" if defined $dbname;
    151154    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    152155        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.