IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24504


Ignore:
Timestamp:
Jun 18, 2009, 5:52:04 PM (17 years ago)
Author:
Paul Price
Message:

Redirect output to log file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippScripts/scripts/publish_file.pl

    r24457 r24504  
    4040# Parse the command-line arguments
    4141my ( $pub_id, $camera, $stage, $stage_id, $format, $product, $workdir );
    42 my ( $dbname, $verbose, $no_update, $save_temps );
     42my ( $dbname, $verbose, $no_update, $save_temps, $redirect );
    4343
    4444GetOptions(
     
    5353    'no-update'         => \$no_update, # Don't update the database?
    5454    'save-temps'        => \$save_temps, # Save temporary files?
     55    'redirect-output'   => \$redirect,   # Redirect output to log file?
    5556    ) or pod2usage( 2 );
    5657
     
    7172
    7273$ipprc->outroot_prepare( $outroot );
     74my $logDest = "$outroot.log";
     75$ipprc->redirect_output($logDest) or &my_die( "Unable to redirect output", $pub_id, $PS_EXIT_SYS_ERROR ) if $redirect;
    7376
    7477my $mdcParser = PS::IPP::Metadata::Config->new;
Note: See TracChangeset for help on using the changeset viewer.