Changeset 18784 for trunk/ippScripts/scripts/magic_process.pl
- Timestamp:
- Jul 30, 2008, 10:47:35 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_process.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_process.pl
r18774 r18784 29 29 30 30 # Parse the command-line arguments 31 my ($magic_id, $node, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op );31 my ($magic_id, $node, $camera, $dbname, $outroot, $save_temps, $verbose, $no_update, $no_op, $redirect); 32 32 GetOptions( 33 'magic_id=s' => \$magic_id, # Magic identifier 34 'node=s' => \$node, # Node name 35 'camera=s' => \$camera, # Camera name 36 'dbname=s' => \$dbname, # Database name 37 'outroot=s' => \$outroot, # Output root name 38 'save-temps' => \$save_temps, # Save temporary files? 39 'verbose' => \$verbose, # Print stuff? 40 'no-update' => \$no_update, # Don't update the database? 41 'no-op' => \$no_op, # Don't do any operations? 33 'magic_id=s' => \$magic_id, # Magic identifier 34 'node=s' => \$node, # Node name 35 'camera=s' => \$camera, # Camera name 36 'dbname=s' => \$dbname, # Database name 37 'outroot=s' => \$outroot, # Output root name 38 'save-temps' => \$save_temps, # Save temporary files? 39 'verbose' => \$verbose, # Print stuff? 40 'no-update' => \$no_update, # Don't update the database? 41 'no-op' => \$no_op, # Don't do any operations? 42 'redirect-output' => \$redirect, # Redirect output? 42 43 ) or pod2usage( 2 ); 43 44 … … 52 53 $ipprc->define_camera($camera); 53 54 55 my $logDest = $ipprc->filename("LOG.EXP", $outroot, $magic_id) or 56 &my_die("Missing entry from camera config", $magic_id, $PS_EXIT_CONFIG_ERROR); 57 $ipprc->redirect_output($logDest) if $redirect; 54 58 55 59 # Look for programs we need
Note:
See TracChangeset
for help on using the changeset viewer.
