Changeset 20673 for trunk/ippScripts/scripts/magic_mask.pl
- Timestamp:
- Nov 10, 2008, 4:48:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_mask.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_mask.pl
r18784 r20673 29 29 30 30 # Parse the command-line arguments 31 my ($magic_id, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $ redirect);31 my ($magic_id, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $logfile); 32 32 GetOptions( 33 33 'magic_id=s' => \$magic_id, # Magic identifier … … 39 39 'no-update' => \$no_update, # Don't update the database? 40 40 'no-op' => \$no_op, # Don't do any operations? 41 ' redirect-output' => \$redirect, # Redirect output?41 'logfile=s' => \$logfile, # Redirect output? 42 42 ) or pod2usage( 2 ); 43 43 … … 51 51 $ipprc->define_camera($camera); 52 52 53 my $logDest = $ipprc->filename("LOG.EXP", $outroot, $magic_id) or 54 &my_die("Missing entry from camera config", $magic_id, $PS_EXIT_CONFIG_ERROR); 55 $ipprc->redirect_output($logDest) if $redirect; 53 $ipprc->redirect_output($logfile) if $logfile; 56 54 57 55 # Look for programs we need 58 56 my $missing_tools; 59 57 my $magictool = can_run('magictool') or (warn "Can't find magictool" and $missing_tools = 1); 60 my $streaks = can_run('RemoveStreaks') or (warn "Can't find RemoveStreaks" and $missing_tools = 1);58 my $streaksremove = can_run('streaksremove') or (warn "Can't find streaksremove" and $missing_tools = 1); 61 59 if ($missing_tools) { 62 60 warn("Can't find required tools.");
Note:
See TracChangeset
for help on using the changeset viewer.
