- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ippScripts/scripts/magic_destreak.pl
r22430 r23352 21 21 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 ); … … 76 74 defined $outroot; 77 75 78 # Unhandled exceptions should be passed on to my_die so they get pushed into the database 79 $SIG{__DIE__} = sub { die @_ if $^S; 80 my_die( $_[0], $magic_ds_id, $component, $PS_EXIT_UNKNOWN_ERROR ); }; 81 76 my $ipprc = PS::IPP::Config->new( $camera ) or my_die( "Unable to set up", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR ); # IPP configuration 77 $ipprc->redirect_output($logfile) or my_die( "Unable to redirect output", $magic_ds_id, $component, $PS_EXIT_SYS_ERROR ) if $logfile; 82 78 83 79 my ($skycell_args, $class_id, $skycell_id); … … 94 90 &my_die("Invalid value for stage: $stage", $magic_ds_id, $component, $PS_EXIT_CONFIG_ERROR); 95 91 } 96 97 $ipprc->redirect_output($logfile) if $logfile;98 99 $ipprc->define_camera($camera);100 101 92 102 93 my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files … … 276 267 my $exit_code = shift; # Exit code to add 277 268 269 $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code; 270 278 271 my $command = "$magicdstool -adddestreakedfile"; 279 272 $command .= " -magic_ds_id $magic_ds_id";
Note:
See TracChangeset
for help on using the changeset viewer.
