Changeset 23186 for trunk/ippScripts/scripts/detrend_norm_exp.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_exp.pl
r22430 r23186 19 19 use PS::IPP::Metadata::List qw( parse_md_list ); 20 20 use File::Temp qw( tempfile ); 21 22 my $ipprc = PS::IPP::Config->new(); # IPP configuration23 21 24 22 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 60 58 defined $outroot; 61 59 62 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 63 $SIG{__DIE__} = sub { die @_ if $^S; 64 my_die( $_[0], $det_id, $iter, $PS_EXIT_UNKNOWN_ERROR ); }; 65 60 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $det_id, $iter, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 66 61 my $logfile = $outroot . ".log"; 67 68 $ipprc->redirect_output($logfile) if $redirect; 69 70 $ipprc->define_camera($camera); 62 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $det_id, $iter, $PS_EXIT_SYS_ERROR ) if $redirect; 71 63 72 64 # Recipes to use based on reduction class
Note:
See TracChangeset
for help on using the changeset viewer.
