Changeset 23186 for trunk/ippScripts/scripts/camera_exp.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r22430 r23186 22 22 use PS::IPP::Config 1.01 qw( :standard ); 23 23 use File::Temp qw( tempfile ); 24 25 my $ipprc = PS::IPP::Config->new(); # IPP configuration26 24 27 25 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 70 68 defined $camera; 71 69 72 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 73 $SIG{__DIE__} = sub { die @_ if $^S; 74 my_die( $_[0], $cam_id, $PS_EXIT_UNKNOWN_ERROR ); }; 75 76 $ipprc->define_camera($camera); 70 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $cam_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 77 71 78 72 my $logDest = $ipprc->filename("LOG.EXP", $outroot) or &my_die("Missing entry from camera config", $cam_id, $PS_EXIT_CONFIG_ERROR); … … 84 78 85 79 if ($redirect) { 86 $ipprc->redirect_output($logDest) ;80 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $cam_id, $PS_EXIT_SYS_ERROR ); 87 81 print "\n\n"; 88 82 print "Starting script $0 on $host\n\n";
Note:
See TracChangeset
for help on using the changeset viewer.
