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

    r10700 r11297  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($det_id, $iter, $det_type, $camera, $no_update);
     21my ($det_id, $iter, $det_type, $camera, $dbname, $no_update);
    2222GetOptions(
    2323    'det_id|d=s'        => \$det_id,
     
    2525    'camera|c=s'        => \$camera,
    2626    'det_type|t=s'      => \$det_type,
     27    'dbname|d=s'        => \$dbname, # Database name
    2728    'no-update'         => \$no_update
    2829) or pod2usage( 2 );
     
    5556{
    5657    my $command = "$dettool -normalizedimfile -det_id $det_id -iteration $iter"; # Command to run
     58    $command .= " -dbname $dbname" if defined $dbname;
    5759    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    5860        run(command => $command, verbose => 1);
     
    139141        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " .
    140142        "-bg $bg -bg_stdev $bg_stdev -bg_mean_stdev $bg_mean_stdev"; # Command to run
     143    $command .= " -dbname $dbname" if defined $dbname;
    141144    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    142145        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.