Changeset 23186 for trunk/ippScripts/scripts/register_exp.pl
- Timestamp:
- Mar 4, 2009, 4:17:15 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/register_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_exp.pl
r22430 r23186 24 24 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 25 25 use Pod::Usage qw( pod2usage ); 26 27 my $ipprc = PS::IPP::Config->new();28 26 29 27 # Look for commands we need … … 53 51 ) or pod2usage( 2 ); 54 52 55 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 56 $SIG{__DIE__} = sub { die @_ if $^S; 57 my_die( $_[0], $exp_id, $PS_EXIT_UNKNOWN_ERROR ); }; 58 59 $ipprc->redirect_output($logfile) if $logfile; 53 my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $exp_id, $PS_EXIT_CONFIG_ERROR ); 54 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $exp_id, $PS_EXIT_SYS_ERROR ) if $logfile; 60 55 61 56 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
Note:
See TracChangeset
for help on using the changeset viewer.
