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

    r11151 r11297  
    1919use Pod::Usage qw( pod2usage );
    2020
    21 my ($det_id, $iter, $class_id, $det_type, $camera, $no_update);
     21my ($det_id, $iter, $class_id, $det_type, $camera, $dbname, $no_update);
    2222GetOptions(
    2323    'det_id|d=s'        => \$det_id,
     
    2626    'det_type|t=s'      => \$det_type,
    2727    'camera|c=s'        => \$camera,
     28    'dbname|d=s'        => \$dbname, # Database name
    2829    'no-update'         => \$no_update
    2930) or pod2usage( 2 );
     
    6566{
    6667    my $command = "$dettool -processedimfile -det_id $det_id -class_id $class_id -included"; # Command to run
     68    $command .= " -dbname $dbname" if defined $dbname;
    6769    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6870        run(command => $command, verbose => 1);
     
    128130    }
    129131    $command .= ' -bg_mean_stdev ' . $stats->bg_mean_stdev();
     132    $command .= " -dbname $dbname" if defined $dbname;
    130133    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    131134        run(command => $command, verbose => 1);
Note: See TracChangeset for help on using the changeset viewer.