Changeset 28003 for branches/pap/pstamp/scripts/request_finish.pl
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/request_finish.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/pstamp/scripts/request_finish.pl
r24831 r28003 21 21 use PS::IPP::Config qw( :standard ); 22 22 23 my ( $req_id, $req_name, $req_file, $req_type, $out _dir, $product, $dbname, $dbserver, $verbose, $save_temps, $redirect_output );23 my ( $req_id, $req_name, $req_file, $req_type, $outdir, $product, $dbname, $dbserver, $verbose, $save_temps, $redirect_output ); 24 24 25 25 GetOptions( … … 28 28 'req_file=s' => \$req_file, 29 29 'req_type=s' => \$req_type, 30 'out _dir=s' => \$out_dir,30 'outdir=s' => \$outdir, 31 31 'product=s' => \$product, 32 32 'dbname=s' => \$dbname, … … 46 46 $err .= "--req_name is required\n" if !$req_name; 47 47 $err .= "--product is required\n" if !$product; 48 # $err .= "--out _dir is required\n" if !$out_dir;48 # $err .= "--outdir is required\n" if !$outdir; 49 49 50 50 die "$err" if $err; 51 51 52 52 53 if (!$out _dir) {54 $out _dir = dirname($req_file);53 if (!$outdir) { 54 $outdir = dirname($req_file); 55 55 } 56 56 57 57 if ($redirect_output) { 58 my $logDest = "$out _dir/reqfinish.$req_id.log";58 my $logDest = "$outdir/reqfinish.$req_id.log"; 59 59 my $ipprc = PS::IPP::Config->new(); 60 60 $ipprc->redirect_output($logDest); … … 79 79 } 80 80 if ($finish_cmd) { 81 my $command = $finish_cmd . " --req_id $req_id --req_name $req_name --req_file $req_file --product $product --out _dir $out_dir";81 my $command = $finish_cmd . " --req_id $req_id --req_name $req_name --req_file $req_file --product $product --outdir $outdir"; 82 82 $command .= " --dbname $dbname" if $dbname; 83 83 $command .= " --dbserver $dbserver" if $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
