Changeset 18984
- Timestamp:
- Aug 8, 2008, 3:46:22 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/request_finish.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/request_finish.pl
r18733 r18984 18 18 use PS::IPP::Metadata::List qw( parse_md_list ); 19 19 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 ); 20 use PS::IPP::Config qw( :standard ); 31 21 32 33 my ( $req_id, $req_name, $req_type, $product, $dbname, $verbose, $save_temps ); 22 my ( $req_id, $req_name, $req_file, $req_type, $product, $dbname, $verbose, $save_temps ); 34 23 35 24 GetOptions( 36 25 'req_id=s' => \$req_id, 37 26 'req_name=s' => \$req_name, 27 'req_file=s' => \$req_file, 38 28 'req_type=s' => \$req_type, 39 29 'product=s' => \$product, … … 49 39 $err .= "--req_id is required\n" if !$req_id; 50 40 $err .= "--req_type is required\n" if !$req_type; 41 $err .= "--req_file is required\n" if !$req_file; 51 42 $err .= "--req_name is required\n" if !$req_name; 52 43 $err .= "--product is required\n" if !$product; … … 72 63 } 73 64 if ($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"; 75 66 $command .= " --dbname $dbname" if $dbname; 76 67 $command .= " --verbose" if $verbose; 68 $command .= " --save-temps" if $save_temps; 77 69 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 78 70 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
