Changeset 22430 for trunk/ippScripts/scripts/detrend_reject_exp.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_exp.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_exp.pl
r18562 r22430 27 27 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 28 28 use Pod::Usage qw( pod2usage ); 29 30 # Look for programs we need 31 my $missing_tools; 32 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1); 33 if ($missing_tools) { 34 warn("Can't find required tools."); 35 exit($PS_EXIT_CONFIG_ERROR); 36 } 29 37 30 38 my ($det_id, $iter, $det_type, $camera, $outroot, $filter, $dbname, $verbose, $no_update, $no_op, $redirect); … … 52 60 defined $outroot; 53 61 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 54 66 # check for existing directory, generate if needed 55 67 $ipprc->outroot_prepare($outroot); … … 89 101 my $rejstats = PS::IPP::Metadata::Stats->new($REJSTATS); # Stats parser 90 102 91 # Look for programs we need92 my $missing_tools;93 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);94 if ($missing_tools) {95 warn("Can't find required tools.");96 exit($PS_EXIT_CONFIG_ERROR);97 }98 99 103 # Get list of component files 100 104 my ($exposures, $command, $success, $error_code, $full_buf, $stdout_buf, $stderr_buf); … … 345 349 $command .= " -det_id $det_id"; 346 350 $command .= " -iteration $iter"; 347 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot";351 # XXX EAM : we should add this to the db : $command .= " -path_base $outroot"; 348 352 $command .= " -code $exit_code"; 349 353 $command .= " -dbname $dbname" if defined $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
