IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2010, 10:03:50 AM (16 years ago)
Author:
bills
Message:

update the stub detectability query scripts to be compatible with the existing
request server workflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/dquery_finish.pl

    r24831 r27578  
    2020use PS::IPP::Config qw( :standard );
    2121
    22 my ( $req_id, $req_name, $req_file, $product, $dbname, $dbserver, $verbose, $save_temps );
     22my ( $req_id, $req_name, $req_file, $product, $out_dir, $dbname, $dbserver, $verbose, $save_temps );
    2323
    2424GetOptions(
    2525           'req_id=s'   => \$req_id,
     26           'req_name=s' => \$req_name,
    2627           'req_file=s' => \$req_file,
    27            'req_name=s' => \$req_name,
    2828           'product=s'  => \$product,
     29           'out_dir=s'  => \$out_dir,
    2930           'dbname=s'   => \$dbname,
    3031           'dbserver=s' => \$dbserver,
     
    4041$err .= "--req_name is required\n" if !$req_name;
    4142$err .= "--product is required\n" if !$product;
     43$err .= "--out_dir is required\n" if !$out_dir;
    4244
    4345die "$err" if $err;
     
    6769    exit 0;
    6870}
     71if (0) {
    6972my $prod_dir = "$outputDataStoreRoot/$product";
    7073if (! -e $prod_dir ) {
     
    7477}
    7578my $out_dir = "$prod_dir/$req_name";
     79}
    7680if (! -e $out_dir ) {
    7781    # something must have gone wrong at the parse stage
     
    113117}
    114118
     119# XXX: have the jobs produce the reglist as with postage stamp requests
    115120my ($REGLIST, $reg_list) = tempfile("$out_dir/reqlist.XXXX", UNLINK => !$save_temps);
    116121foreach my $job (@jobs) {
     
    131136if (-s $reg_list) {
    132137    my $command = "$dsreg --add $req_name --product $product --list $reg_list";
     138    $command .= " --copy --datapath $out_dir";
    133139    $command .= " --type MOPS_DETECTABILITY_RESPONSE";
    134140    $command .= " --dbname $dbname" if $dbname;
Note: See TracChangeset for help on using the changeset viewer.