- Timestamp:
- Mar 5, 2009, 11:24:29 AM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/diff_skycell.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215
- Property svn:mergeinfo changed
/trunk merged: 22727-22752,23115-23126,23128,23137-23157,23159-23174,23182-23195,23198
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090215/ippScripts/scripts/diff_skycell.pl
r23197 r23199 21 21 use Data::Dumper; 22 22 use PS::IPP::Config 1.01 qw( :standard ); 23 24 my $ipprc = PS::IPP::Config->new(); # IPP configuration25 23 26 24 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 62 60 and 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], $diff_id, $skycell_id, $PS_EXIT_UNKNOWN_ERROR ); }; 62 my $ipprc = PS::IPP::Config->new() or my_die( "Unable to set up", $diff_id, $skycell_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 67 63 68 64 # XXX camera is not known here; cannot use filerules... 69 65 # my $logDest = $ipprc->filename("LOG.EXP", $outroot); 70 66 my $logDest = "$outroot.log"; 71 $ipprc->redirect_output($logDest) if $redirect;67 $ipprc->redirect_output($logDest) or my_die( "Unable to redirect output", $diff_id, $skycell_id, $PS_EXIT_SYS_ERROR ) if $redirect; 72 68 73 69 my $source_id = $ipprc->source_id($dbname, $PS_TABLE_ID_DIFF);
Note:
See TracChangeset
for help on using the changeset viewer.
