IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27729


Ignore:
Timestamp:
Apr 22, 2010, 4:25:54 PM (16 years ago)
Author:
rhenders
Message:

Added datastore product as an (optional) argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/scripts/ippToPsps_run.pl

    r27710 r27729  
    1212
    1313# globals
    14 my ($verbose, $save_temps, $no_op, $no_update, $camera, $product, $output, $dvodb, $label, $singleExpId, $no_publish);
     14my ($verbose, $save_temps, $no_op, $no_update, $camera, $product, $output, $dvodb, $datastoreProduct, $label, $singleExpId, $no_publish);
    1515
    1616# TODO temporary until we use database to store current jobid
     
    2626$output = undef;
    2727$singleExpId = undef;
     28$datastoreProduct = "PSPS_test";
    2829
    2930# get user args
     
    3435        'label|l=s' => \$label,
    3536        'expid|e=s' => \$singleExpId,
     37        'dsproduct|s=s' => \$datastoreProduct,
    3638        'no_publish' => \$no_publish,
    3739        'verbose|v' => \$verbose,
     
    129131            ORDER BY rawExp.exp_id ASC
    130132SQL
     133            #AND camRun.dist_group LIKE 'sas'
     134            #AND rawExp.decl >= '-0.157079633' AND rawExp.decl <= '0.157079633' Jims Dec range
    131135    }
    132136    else {
     
    137141SQL
    138142    }
    139 
    140     if ($verbose) { print"* $query\n";}
    141143
    142144    my $batchId = 0;
     
    221223        print "*\n*******************************************************************************\n\n";
    222224    }
     225
     226    $db->disconnect();
    223227
    224228    return 1;
     
    549553    $command .= " --datapath $fullJobPath";
    550554    $command .= " --type IPP_PSPS";
    551     $command .= " --product PSPS_test";
     555    $command .= " --product $datastoreProduct";
    552556    $command .= " --list $tempName";
    553557
Note: See TracChangeset for help on using the changeset viewer.