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/request_finish.pl

    r21410 r24831  
    2121use PS::IPP::Config qw( :standard );
    2222
    23 my ( $req_id, $req_name, $req_file, $req_type, $out_dir, $product, $dbname, $verbose, $save_temps, $redirect_output );
     23my ( $req_id, $req_name, $req_file, $req_type, $out_dir, $product, $dbname, $dbserver, $verbose, $save_temps, $redirect_output );
    2424
    2525GetOptions(
     
    3131           'product=s'  => \$product,
    3232           'dbname=s'   => \$dbname,
     33           'dbserver=s' => \$dbserver,
    3334           'verbose'    => \$verbose,
    3435           'save-temps' => \$save_temps,
     
    8081    my $command = $finish_cmd . " --req_id $req_id --req_name $req_name --req_file $req_file --product $product --out_dir $out_dir";
    8182    $command   .= " --dbname $dbname" if $dbname;
     83    $command   .= " --dbserver $dbserver" if $dbserver;
    8284    $command   .= " --verbose" if $verbose;
    8385    $command   .= " --save-temps" if $save_temps;
     
    9395    my $command = "$pstamptool -updatereq -req_id $req_id -state stop -fault $PS_EXIT_DATA_ERROR";
    9496    $command   .= " -dbname $dbname" if $dbname;
     97    $command   .= " -dbserver $dbserver" if $dbserver;
    9598    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9699        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.