Changeset 9097 for trunk/ippScripts/scripts/phase0exp.pl
- Timestamp:
- Oct 2, 2006, 12:16:03 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0exp.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0exp.pl
r9091 r9097 12 12 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 13 13 14 my ($exp id, $no_update);14 my ($exptag, $no_update); 15 15 16 16 GetOptions( 17 'exp_ id|e=s' => \$expid,17 'exp_tag|e=s' => \$exptag, 18 18 'no-update' => \$no_update 19 19 ) or pod2usage( 2 ); … … 21 21 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 22 22 pod2usage( 23 -msg => "Required options: --exp_ id",23 -msg => "Required options: --exp_tag", 24 24 -exitval => 3, 25 ) unless defined $exp id;25 ) unless defined $exptag; 26 26 27 27 # Define setup … … 73 73 my $imfiles; 74 74 { 75 my $command = "$p0tool -rawimfile -exp_ id $expid";75 my $command = "$p0tool -rawimfile -exp_tag $exptag"; 76 76 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 77 77 run(command => $command, verbose => 1); 78 die "Unable to perform p0tool on exposure id $exp id: $error_code\n" if not $success;78 die "Unable to perform p0tool on exposure id $exptag: $error_code\n" if not $success; 79 79 my $metadata = $mdcParser->parse(join "", @$stdout_buf) 80 80 or die "unable to parse metadata config doc"; … … 117 117 # Output results to the database 118 118 unless ($no_update) { 119 my $command = "$p0tool -updateexp -exp_ id $expid"; # Command to execute to update exposure parameters119 my $command = "$p0tool -updateexp -exp_tag $exptag"; # Command to execute to update exposure parameters 120 120 121 121 # Add the values of interest … … 157 157 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 158 158 run(command => $command, verbose => 1); 159 die "Unable to run phase0 update for $exp id: $error_code\n" if not $success;159 die "Unable to run phase0 update for $exptag: $error_code\n" if not $success; 160 160 } 161 161
Note:
See TracChangeset
for help on using the changeset viewer.
