IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2009, 5:20:29 PM (17 years ago)
Author:
watersc1
Message:

Finished up my edits to the detrend cleanup, and some changes to my
copy of burntool and the pslib astrometry. Detrend cleanup has not
been tested yet. That's up next.

Location:
branches/czw_branch/cleanup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/cleanup

  • branches/czw_branch/cleanup/pstamp/scripts/pstamp_job_run.pl

    r23267 r24951  
    1717my $verbose;
    1818my $dbname;
     19my $dbserver;
    1920my $job_id;
    2021my $redirect_output;
     
    2526
    2627GetOptions(
    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,
    3234);
    3335
     
    6567}
    6668
     69if (!$dbserver) {
     70    $dbserver =  metadataLookupStr($ipprc->{_siteConfig}, 'PS_DBSERVER');
     71}
     72
    6773my $missing_tools;
    6874
     
    8389    my $command = "$pstamptool -pendingjob -job_id $job_id";
    8490    $command .= " -dbname $dbname" if $dbname;
     91    $command .= " -dbserver $dbserver" if $dbserver;
    8592    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8693        run(command => $command, verbose => $verbose);
     
    118125    my $command = "$ppstamp -file $uri $outputBase $argString";
    119126    $command .= " -dbname $dbname" if $dbname;
     127    $command .= " -dbserver $dbserver" if $dbserver;
    120128    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    121129        run(command => $command, verbose => $verbose);
     
    172180    my $command = "$pstamp_get_image_job --job_id $job_id --uri $uri --out_dir $outputBase --rownum $rownum";
    173181    $command .= " --dbname $dbname" if $dbname;
     182    $command .= " --dbserver $dbserver" if $dbserver;
    174183    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    175184        run(command => $command, verbose => $verbose);
     
    191200    my $command = "$pstamptool -updatejob -job_id $job_id -state stop -fault $jobStatus";
    192201    $command .= " -dbname $dbname" if $dbname;
     202    $command .= " -dbserver $dbserver" if $dbserver;
    193203    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    194204        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.