IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2009, 5:14:07 PM (17 years ago)
Author:
bills
Message:

updates to the postage stamp server to allow the postage stamp server's
database to be located on a different mysql server than the ipp.
Also some updates towards compatability with the current ipp

File:
1 edited

Legend:

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

    r23267 r24831  
    1616my $verbose;
    1717my $dbname;
     18my $dbserver;
    1819my $req_id;
    1920my $request_file_name;
     
    2930    'mode=s'    =>  \$mode,
    3031    'dbname=s'  =>  \$dbname,
     32    'dbserver=s'=>  \$dbserver,
    3133    'verbose'   =>  \$verbose,
    3234);
     
    8991    $command .= " -outProduct $product";
    9092    $command .= " -dbname $dbname" if $dbname;
     93    $command .= " -dbserver $dbserver" if $dbserver;
    9194    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9295        run(command => $command, verbose => $verbose);
     
    143146    die "job_type is list_uri but mode is $mode" if ($job_type eq "list_uri") and ($mode ne "list_uri");
    144147
    145     my $proj_hash = resolve_project($ipprc, $project, $dbname);
     148    my $proj_hash = resolve_project($ipprc, $project, $dbname, $dbserver);
    146149    die "project $project not found\n" unless $proj_hash;
    147150
     
    217220                    . " -uri $listfile -outputBase $out_dir -rownum $rownum";
    218221        $command .= " -dbname $dbname" if $dbname;
     222        $command .= " -dbserver $dbserver" if $dbserver;
    219223        if ($mode eq "list_job") {
    220224            print "$command\n";
     
    274278            $command .= " -exp_id $exp_id" if $exp_id;
    275279            $command .= " -dbname $dbname" if $dbname;
     280            $command .= " -dbserver $dbserver" if $dbserver;
    276281
    277282            if ($mode eq "list_job") {
Note: See TracChangeset for help on using the changeset viewer.