Changeset 27578
- Timestamp:
- Apr 2, 2010, 10:03:50 AM (16 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 2 edited
-
dquery_finish.pl (modified) (6 diffs)
-
dqueryparse.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/dquery_finish.pl
r24831 r27578 20 20 use PS::IPP::Config qw( :standard ); 21 21 22 my ( $req_id, $req_name, $req_file, $product, $ dbname, $dbserver, $verbose, $save_temps );22 my ( $req_id, $req_name, $req_file, $product, $out_dir, $dbname, $dbserver, $verbose, $save_temps ); 23 23 24 24 GetOptions( 25 25 'req_id=s' => \$req_id, 26 'req_name=s' => \$req_name, 26 27 'req_file=s' => \$req_file, 27 'req_name=s' => \$req_name,28 28 'product=s' => \$product, 29 'out_dir=s' => \$out_dir, 29 30 'dbname=s' => \$dbname, 30 31 'dbserver=s' => \$dbserver, … … 40 41 $err .= "--req_name is required\n" if !$req_name; 41 42 $err .= "--product is required\n" if !$product; 43 $err .= "--out_dir is required\n" if !$out_dir; 42 44 43 45 die "$err" if $err; … … 67 69 exit 0; 68 70 } 71 if (0) { 69 72 my $prod_dir = "$outputDataStoreRoot/$product"; 70 73 if (! -e $prod_dir ) { … … 74 77 } 75 78 my $out_dir = "$prod_dir/$req_name"; 79 } 76 80 if (! -e $out_dir ) { 77 81 # something must have gone wrong at the parse stage … … 113 117 } 114 118 119 # XXX: have the jobs produce the reglist as with postage stamp requests 115 120 my ($REGLIST, $reg_list) = tempfile("$out_dir/reqlist.XXXX", UNLINK => !$save_temps); 116 121 foreach my $job (@jobs) { … … 131 136 if (-s $reg_list) { 132 137 my $command = "$dsreg --add $req_name --product $product --list $reg_list"; 138 $command .= " --copy --datapath $out_dir"; 133 139 $command .= " --type MOPS_DETECTABILITY_RESPONSE"; 134 140 $command .= " --dbname $dbname" if $dbname; -
trunk/pstamp/scripts/dqueryparse.pl
r24831 r27578 73 73 74 74 if (!$dbserver) { 75 my $ipprc = =PS::IPP::Config->new();75 my $ipprc = PS::IPP::Config->new(); 76 76 $dbserver = metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER'); 77 77 } … … 99 99 die "$req_file is version $extver expecting 1" if $extver ne 1; 100 100 101 if (0) { 101 102 $out_dir .= "/$req_name"; 103 } 102 104 if (! -e $out_dir ) { 103 105 mkdir $out_dir or die "cannot create output directory $out_dir"; … … 133 135 my $result; 134 136 { 135 my $command = "$pstamptool -addjob -req_id $req_id - uri $req_file -outputBase $out_dir";137 my $command = "$pstamptool -addjob -req_id $req_id -outputBase $out_dir"; 136 138 $command .= " -job_type detect_query -state stop -fault $fault"; 137 $command .= " -rownum 0";139 $command .= " -rownum 1"; 138 140 $command .= " -dbname $dbname" if $dbname; 139 141 $command .= " -dbserver $dbserver" if $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
