Changeset 32374 for trunk/ippScripts/scripts
- Timestamp:
- Sep 8, 2011, 2:12:04 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/chip_imfile.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/chip_imfile.pl
r32355 r32374 44 44 my ( $exp_id, $chip_id, $class_id, $chip_imfile_id, $uri, $camera, $outroot, $dbname, $run_state, $reduction, $threads, $verbose, 45 45 $no_update, $save_temps, $no_op, $redirect, $magicked, $deburned ); 46 47 my $zaplog = 0;48 46 49 47 GetOptions( … … 65 63 'no-op' => \$no_op, # Don't do any operations? 66 64 'redirect-output' => \$redirect, 67 'zaplog' => \$zaplog,68 65 'save-temps' => \$save_temps, # Save temporary files? 69 66 ) or pod2usage( 2 ); … … 92 89 } 93 90 94 my ($log Dest, $traceDest);91 my ($logRule, $traceDest); 95 92 if ($run_state eq 'new') { 96 $log Dest = prepare_output("LOG.IMFILE", $outroot, $class_id, $zaplog);93 $logRule = "LOG.IMFILE"; 97 94 $traceDest = prepare_output("TRACE.IMFILE", $outroot, $class_id, 1); 98 95 } else { 99 $log Dest = prepare_output("LOG.IMFILE.UPDATE", $outroot, $class_id, 1);96 $logRule = "LOG.IMFILE.UPDATE"; 100 97 $traceDest = prepare_output("TRACE.IMFILE.UPDATE", $outroot, $class_id, 1); 101 98 } 102 99 103 100 if ($redirect) { 104 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR ); 101 my $logDest = $ipprc->filename($logRule, $outroot, $class_id); 102 103 $ipprc->redirect_to_logfile($logDest) or my_die( "Unable to redirect output", $exp_id, $chip_id, $class_id, $PS_EXIT_SYS_ERROR ); 104 105 105 print STDOUT "\n\n"; 106 106 print STDOUT "Starting script $0 on $host\n\n"; … … 451 451 $command .= " -image_id $chip_imfile_id" if defined $chip_imfile_id; 452 452 $command .= " -source_id $source_id" if defined $source_id; 453 $command .= " -tracedest $traceDest -log $logDest";453 $command .= " -tracedest $traceDest"; 454 454 $command .= " -dbname $dbname" if defined $dbname; 455 455
Note:
See TracChangeset
for help on using the changeset viewer.
