Changeset 11297 for trunk/ippScripts/scripts/phase0_imfile.pl
- Timestamp:
- Jan 25, 2007, 2:55:43 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0_imfile.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0_imfile.pl
r11212 r11297 31 31 use Pod::Usage qw( pod2usage ); 32 32 33 my ($cache, $exp_tag, $class_id, $uri, $workdir, $ no_update);33 my ($cache, $exp_tag, $class_id, $uri, $workdir, $dbname, $no_update); 34 34 35 35 GetOptions( … … 38 38 'class_id|i=s' => \$class_id, 39 39 'uri|u=s' => \$uri, 40 'workdir|w=s' => \$workdir, 40 'workdir|w=s' => \$workdir, # Working directory for output files 41 'dbname|d=s' => \$dbname,# Database name 41 42 'no-update' => \$no_update 42 43 ) or pod2usage( 2 ); … … 185 186 } 186 187 188 push @command, "-dbname", $dbname if defined $dbname; 189 187 190 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 188 191 run(command => \@command, verbose => 1); … … 219 222 my $exit_code = $_[2]; 220 223 if ($exp_tag && $class_id) { 221 system ("$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code"); 224 my $command = "$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code"; 225 $command .= " -dbname $dbname" if defined $dbname; 226 system ($command); 222 227 } 223 228 exit $exit_code;
Note:
See TracChangeset
for help on using the changeset viewer.
