IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2008, 3:46:22 PM (18 years ago)
Author:
bills
Message:

add request file paramters to results

File:
1 edited

Legend:

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

    r18733 r18984  
    1818use PS::IPP::Metadata::List qw( parse_md_list );
    1919
    20 use PS::IPP::Config qw($PS_EXIT_SUCCESS
    21                        $PS_EXIT_UNKNOWN_ERROR
    22                        $PS_EXIT_SYS_ERROR
    23                        $PS_EXIT_CONFIG_ERROR
    24                        $PS_EXIT_PROG_ERROR
    25                        $PS_EXIT_DATA_ERROR
    26                        $PS_EXIT_TIMEOUT_ERROR
    27                        metadataLookupStr
    28                        metadataLookupBool
    29                        caturi
    30                        );
     20use PS::IPP::Config qw( :standard );
    3121
    32 
    33 my ( $req_id, $req_name, $req_type, $product, $dbname, $verbose, $save_temps );
     22my ( $req_id, $req_name, $req_file, $req_type, $product, $dbname, $verbose, $save_temps );
    3423
    3524GetOptions(
    3625           'req_id=s'   => \$req_id,
    3726           'req_name=s' => \$req_name,
     27           'req_file=s' => \$req_file,
    3828           'req_type=s' => \$req_type,
    3929           'product=s'  => \$product,
     
    4939$err .= "--req_id is required\n" if !$req_id;
    5040$err .= "--req_type is required\n" if !$req_type;
     41$err .= "--req_file is required\n" if !$req_file;
    5142$err .= "--req_name is required\n" if !$req_name;
    5243$err .= "--product is required\n" if !$product;
     
    7263}
    7364if ($finish_cmd) {
    74     my $command = $finish_cmd . " --req_id $req_id --req_name $req_name --product $product";
     65    my $command = $finish_cmd . " --req_id $req_id --req_name $req_name --req_file $req_file --product $product";
    7566    $command   .= " --dbname $dbname" if $dbname;
    7667    $command   .= " --verbose" if $verbose;
     68    $command   .= " --save-temps" if $save_temps;
    7769    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7870        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.