Changeset 11946
- Timestamp:
- Feb 20, 2007, 3:26:45 PM (19 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
ipp_serial_phase2.pl (modified) (2 diffs)
-
ipp_serial_phase3.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_phase2.pl
r11846 r11946 14 14 my ($dbname, # Database name to use 15 15 $workdir, # Working directory 16 $no_op, # No operations? 17 $no_update, # No updating? 16 18 ); 17 19 GetOptions( 18 20 'dbname|d=s' => \$dbname, 19 21 'workdir|w=s' => \$workdir, 22 'no-op' => \$no_op, 23 'no-update' => \$no_update, 20 24 ) or pod2usage( 2 ); 21 25 … … 51 55 52 56 my $command = "$phase2 --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera"; 57 $command .= " --no-op" if defined $no_op; 58 $command .= " --no-update" if defined $no_update; 53 59 $command .= " --workdir $workdir" if defined $workdir; 54 60 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
trunk/ippScripts/scripts/ipp_serial_phase3.pl
r11846 r11946 14 14 my ($dbname, # Database name to use 15 15 $workdir, # Working directory 16 $no_op, # No operations? 17 $no_update, # No updating? 16 18 ); 17 19 GetOptions( 18 20 'dbname|d=s' => \$dbname, 19 21 'workdir|w=s' => \$workdir, 22 'no-op' => \$no_op, 23 'no-update' => \$no_update, 20 24 ) or pod2usage( 2 ); 21 25 … … 39 43 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 40 44 run( command => $command, verbose => 1 ); 41 die "Unable to get phase 3 imfile list: $error_code\n" if not $success;45 die "Unable to get phase 3 exposure list: $error_code\n" if not $success; 42 46 $list = parse_md_list( $mdcParser->parse( join( '', @$stdout_buf ) ) ) or 43 47 die "Unable to parse output from p2tool.\n"; … … 48 52 my $camera = $item->{camera}; 49 53 50 my $command = "$phase3 --exp_tag $exp_tag --camera $camera"; 54 my $command = "$phase3 --exp_tag $exp_tag --camera $camera --dbname $dbname"; 55 $command .= " --no-op" if defined $no_op; 56 $command .= " --no-update" if defined $no_update; 51 57 $command .= " --workdir $workdir" if defined $workdir; 52 58 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
