Changeset 9097 for trunk/ippScripts/scripts/phase0imfile.pl
- Timestamp:
- Oct 2, 2006, 12:16:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0imfile.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0imfile.pl
r9091 r9097 15 15 use Pod::Usage qw( pod2usage ); 16 16 17 my ($exp_ id, $class_id, $uri, $no_update);17 my ($exp_tag, $class_id, $uri, $no_update); 18 18 19 19 GetOptions( 20 'exp_ id|e=s' => \$exp_id,20 'exp_tag|e=s' => \$exp_tag, 21 21 'class_id|i=s' => \$class_id, 22 22 'uri|u=s' => \$uri, … … 26 26 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 27 27 pod2usage( 28 -msg => "Required options: --exp_ id--class_id --uri",28 -msg => "Required options: --exp_tag --class_id --uri", 29 29 -exitval => 3, 30 ) unless defined $exp_ id30 ) unless defined $exp_tag 31 31 and defined $class_id 32 32 and defined $uri; … … 60 60 # Switches for p0tool 61 61 use constant P0TOOL_MODE => '-updateimfile'; # Mode for p0tool 62 use constant P0TOOL_EXP ID => '-exp_id'; # Switch to specify the exposure id62 use constant P0TOOL_EXPTAG => '-exp_tag'; # Switch to specify the exposure id 63 63 use constant P0TOOL_CLASSID => '-class_id'; # Switch to specify the class id 64 64 use constant P0TOOL_BG_MEAN => '-bg'; # Switch to add the background … … 78 78 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 79 79 run(command => $command, verbose => 1); 80 die "Unable to perform ppStats on exposure id $exp_ id: $error_code\n" if not $success;80 die "Unable to perform ppStats on exposure id $exp_tag: $error_code\n" if not $success; 81 81 82 82 # Parse the output … … 92 92 # Push the results into the database 93 93 unless ($no_update) { 94 my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXP ID() . " " . $exp_id. " " .94 my $command = $p0tool . " " . P0TOOL_MODE() . " " . P0TOOL_EXPTAG() . " " . $exp_tag . " " . 95 95 P0TOOL_CLASSID() . " " . $class_id; # Command to run p0tool 96 96
Note:
See TracChangeset
for help on using the changeset viewer.
