Changeset 22430 for trunk/ippScripts/scripts/detrend_resid_imfile.pl
- Timestamp:
- Feb 24, 2009, 12:00:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_imfile.pl
r19781 r22430 22 22 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 23 23 use Pod::Usage qw( pod2usage ); 24 25 # Look for programs we need 26 my $missing_tools; 27 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1); 28 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1); 29 my $ppStats = can_run('ppStats') or (warn "Can't find ppStats" and $missing_tools = 1); 30 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 31 if ($missing_tools) { 32 warn("Can't find required tools."); 33 exit($PS_EXIT_CONFIG_ERROR); 34 } 24 35 25 36 my ( $det_id, $iter, $ref_det_id, $ref_iter, $exp_id, $exp_tag, $class_id, $det_type, $detrend, $input_uri, $camera, $mode, $outroot, … … 65 76 defined $detrend; 66 77 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], $det_id, $iter, $exp_id, $class_id, $PS_EXIT_UNKNOWN_ERROR ); }; 81 67 82 $ipprc->define_camera($camera); 68 83 my $logDest = $ipprc->filename("LOG.IMFILE", $outroot, $class_id); … … 109 124 }; 110 125 111 # Look for programs we need112 my $missing_tools;113 my $dettool = can_run('dettool') or (warn "Can't find dettool" and $missing_tools = 1);114 my $ppImage = can_run('ppImage') or (warn "Can't find ppImage" and $missing_tools = 1);115 my $ppStats = can_run('ppStats') or (warn "Can't find ppStats" and $missing_tools = 1);116 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);117 if ($missing_tools) {118 warn("Can't find required tools.");119 exit($PS_EXIT_CONFIG_ERROR);120 }121 122 126 # outroot examples (HOST components must be set) 123 127 # file://data/ipp004.0/gpc1/20080130 … … 179 183 } 180 184 foreach my $line (@$stdout_buf) { 181 $cmdflags .= " $line";185 $cmdflags .= " $line"; 182 186 } 183 187 chomp $cmdflags; … … 192 196 } 193 197 foreach my $line (@$stdout_buf) { 194 $cmdflags .= " $line";198 $cmdflags .= " $line"; 195 199 } 196 200 chomp $cmdflags;
Note:
See TracChangeset
for help on using the changeset viewer.
