Changeset 23186 for trunk/ippScripts/scripts/magic_process.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_process.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_process.pl
r22430 r23186 23 23 24 24 use PS::IPP::Config 1.01 qw( :standard ); 25 26 my $ipprc = PS::IPP::Config->new(); # IPP configuration27 25 28 26 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 62 60 defined $outroot; 63 61 64 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 65 $SIG{__DIE__} = sub { die @_ if $^S; 66 my_die( $_[0], $magic_id, $node, $PS_EXIT_UNKNOWN_ERROR ); }; 67 68 $ipprc->define_camera($camera); 62 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_id, $node, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 63 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_id, $node, $PS_EXIT_SYS_ERROR ) if $logfile; 69 64 70 65 # RemoveStreaks doesn't know about nebulous. It expects to be able to append strings to outroot … … 73 68 # of the file names as arguments 74 69 if ($outroot =~ 'neb:/') { 75 &my_die("RemoveStreaks does not support nebulous paths in outroot", $magic_id, $node, 76 $PS_EXIT_CONFIG_ERROR); 70 &my_die("RemoveStreaks does not support nebulous paths in outroot", $magic_id, $node, $PS_EXIT_CONFIG_ERROR); 77 71 } 78 72 79 73 # resolve any path:// or file:// in outroot 80 74 $outroot = $ipprc->file_resolve($outroot); 81 82 $ipprc->redirect_output($logfile) if $logfile;83 75 84 76 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
Note:
See TracChangeset
for help on using the changeset viewer.
