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

    r10719 r11297  
    1818use Pod::Usage qw( pod2usage );
    1919
    20 my ($det_id, $iter, $det_type, $camera, $filter, $no_update);
     20my ($det_id, $iter, $det_type, $camera, $filter, $dbname, $no_update);
    2121GetOptions(
    2222           'det_id|d=s'        => \$det_id,
     
    2525           'camera=s'          => \$camera,
    2626           'filter=s'          => \$filter,
     27           'dbname|d=s'        => \$dbname, # Database name
    2728           'no-update'         => \$no_update
    2829) or pod2usage( 2 );
     
    4849{
    4950    my $command = "$dettool -residexp -det_id $det_id -iteration $iter"; # Command to run
     51    $command .= " -dbname $dbname" if defined $dbname;
    5052    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    5153        run(command => $command, verbose => 1);
     
    105107    $expTag = $expTags[$i];     # Exposure ID
    106108    $command = "$dettool -updateresidexp -det_id $det_id -iteration $iter -exp_tag $expTag"; # Command to run
     109    $command .= " -dbname $dbname" if defined $dbname;
     110
    107111    $reject = 0;                # Reject this exposure?
    108112
     
    197201        " -bg_mean_stdev " . $meanStats->standard_deviation();
    198202    $command .= " -accept" if $master;
    199    
     203    $command .= " -dbname $dbname" if defined $dbname;
     204
    200205    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    201206        run(command => $command, verbose => 1);
     
    211216        $command .= ' -again';
    212217    }
     218   
     219    $command .= " -dbname $dbname" if defined $dbname;
    213220   
    214221    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.