Changeset 24504
- Timestamp:
- Jun 18, 2009, 5:52:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_mops/ippScripts/scripts/publish_file.pl
r24457 r24504 40 40 # Parse the command-line arguments 41 41 my ( $pub_id, $camera, $stage, $stage_id, $format, $product, $workdir ); 42 my ( $dbname, $verbose, $no_update, $save_temps );42 my ( $dbname, $verbose, $no_update, $save_temps, $redirect ); 43 43 44 44 GetOptions( … … 53 53 'no-update' => \$no_update, # Don't update the database? 54 54 'save-temps' => \$save_temps, # Save temporary files? 55 'redirect-output' => \$redirect, # Redirect output to log file? 55 56 ) or pod2usage( 2 ); 56 57 … … 71 72 72 73 $ipprc->outroot_prepare( $outroot ); 74 my $logDest = "$outroot.log"; 75 $ipprc->redirect_output($logDest) or &my_die( "Unable to redirect output", $pub_id, $PS_EXIT_SYS_ERROR ) if $redirect; 73 76 74 77 my $mdcParser = PS::IPP::Metadata::Config->new;
Note:
See TracChangeset
for help on using the changeset viewer.
