IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2009, 5:44:55 PM (17 years ago)
Author:
bills
Message:

Create stamps in workdir area instead of the data store product directory
various changes to improve logging

File:
1 edited

Legend:

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

    r20152 r21410  
    1818my $dbname;
    1919my $job_id;
     20my $redirect_output;
     21my $output_base;
    2022
    2123my $host = hostname();
     
    2325
    2426GetOptions(
    25     'job_id=s'  =>  \$job_id,
    26     'dbname=s'  =>  \$dbname,
    27     'verbose'   =>  \$verbose,
     27    'job_id=s'      =>  \$job_id,
     28    'output_base=s' =>  \$output_base,
     29    'redirect-output' => \$redirect_output,
     30    'dbname=s'      =>  \$dbname,
     31    'verbose'       =>  \$verbose,
    2832);
    2933
     
    3539
    3640die "job_id is required" if !$job_id;
     41die "output_base is required" if !$output_base;
    3742
    3843use IPC::Cmd 0.36 qw( can_run run );
     
    5358                       caturi
    5459                       );
     60my $ipprc = PS::IPP::Config->new(); # IPP Configuration
     61
     62if ($redirect_output) {
     63    my $logDest = "$output_base.log";
     64    $ipprc->redirect_output($logDest);
     65}
    5566
    5667my $missing_tools;
Note: See TracChangeset for help on using the changeset viewer.