Changeset 24831 for trunk/pstamp/scripts/pstamp_job_run.pl
- Timestamp:
- Jul 16, 2009, 5:14:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_job_run.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_job_run.pl
r23267 r24831 17 17 my $verbose; 18 18 my $dbname; 19 my $dbserver; 19 20 my $job_id; 20 21 my $redirect_output; … … 25 26 26 27 GetOptions( 27 'job_id=s' => \$job_id, 28 'output_base=s' => \$output_base, 29 'redirect-output' => \$redirect_output, 30 'dbname=s' => \$dbname, 31 'verbose' => \$verbose, 28 'job_id=s' => \$job_id, 29 'output_base=s' => \$output_base, 30 'redirect-output' => \$redirect_output, 31 'dbname=s' => \$dbname, 32 'dbserver=s' => \$dbserver, 33 'verbose' => \$verbose, 32 34 ); 33 35 … … 65 67 } 66 68 69 if (!$dbserver) { 70 $dbserver = metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER'); 71 } 72 67 73 my $missing_tools; 68 74 … … 83 89 my $command = "$pstamptool -pendingjob -job_id $job_id"; 84 90 $command .= " -dbname $dbname" if $dbname; 91 $command .= " -dbserver $dbserver" if $dbserver; 85 92 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 86 93 run(command => $command, verbose => $verbose); … … 118 125 my $command = "$ppstamp -file $uri $outputBase $argString"; 119 126 $command .= " -dbname $dbname" if $dbname; 127 $command .= " -dbserver $dbserver" if $dbserver; 120 128 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 121 129 run(command => $command, verbose => $verbose); … … 172 180 my $command = "$pstamp_get_image_job --job_id $job_id --uri $uri --out_dir $outputBase --rownum $rownum"; 173 181 $command .= " --dbname $dbname" if $dbname; 182 $command .= " --dbserver $dbserver" if $dbserver; 174 183 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 175 184 run(command => $command, verbose => $verbose); … … 191 200 my $command = "$pstamptool -updatejob -job_id $job_id -state stop -fault $jobStatus"; 192 201 $command .= " -dbname $dbname" if $dbname; 202 $command .= " -dbserver $dbserver" if $dbserver; 193 203 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 194 204 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
