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

    r10700 r11297  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($det_id, $exp_tag, $camera, $no_update);
     21my ($det_id, $exp_tag, $camera, $dbname, $no_update);
    2222GetOptions(
    2323    'det_id|d=s'        => \$det_id,
    2424    'exp_tag|e=s'       => \$exp_tag,
    2525    'camera|c=s'        => \$camera,
     26    'dbname|d=s'        => \$dbname, # Database name
    2627    'no-update'         => \$no_update
    2728) or pod2usage( 2 );
     
    5354{
    5455    my $command = "$dettool -processedimfile -det_id $det_id -exp_tag $exp_tag"; # Command to run
     56    $command .= " -dbname $dbname" if defined $dbname;
    5557    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    5658        run(command => $command, verbose => 1);
     
    139141        "-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1 -b2_uri $jpeg2 " .
    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.