Changeset 16308 for trunk/ippScripts/scripts/camera_exp.pl
- Timestamp:
- Feb 5, 2008, 11:47:19 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r16247 r16308 37 37 use Pod::Usage qw( pod2usage ); 38 38 39 my ($exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $no_update, $no_op); 39 my ( $exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $verbose, $no_update, 40 $no_op ); 40 41 GetOptions( 41 42 'exp_tag=s' => \$exp_tag, # Exposure identifier … … 47 48 'reduction=s' => \$reduction, # Reduction class 48 49 'dvodb|w=s' => \$dvodb, # output DVO database 50 'verbose' => \$verbose, # Print to stdout 49 51 'no-update' => \$no_update, # Update the database? 50 52 'no-op' => \$no_op, # Don't do any operations? … … 129 131 $command .= " -dbname $dbname" if defined $dbname; 130 132 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 131 run(command => $command, verbose => 1);133 run(command => $command, verbose => $verbose); 132 134 unless ($success) { 133 135 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 196 198 my $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run 197 199 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 198 run(command => $command, verbose => 1);200 run(command => $command, verbose => $verbose); 199 201 unless ($success) { 200 202 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 208 210 my $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run 209 211 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 210 run(command => $command, verbose => 1);212 run(command => $command, verbose => $verbose); 211 213 unless ($success) { 212 214 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 222 224 my $command = "$ppConfigDump -camera $camera -dump-recipe PSASTRO -"; 223 225 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 224 run(command => $command, verbose => 1);226 run(command => $command, verbose => $verbose); 225 227 unless ($success) { 226 228 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 244 246 $command .= " -tracedest $traceDest -log $logDest"; 245 247 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 246 run(command => $command, verbose => 1);248 run(command => $command, verbose => $verbose); 247 249 unless ($success) { 248 250 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 274 276 275 277 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 276 run(command => $command, verbose => 1);278 run(command => $command, verbose => $verbose); 277 279 unless ($success) { 278 280 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 293 295 unless ($no_update) { 294 296 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 295 run(command => $fpaCommand, verbose => 1);297 run(command => $fpaCommand, verbose => $verbose); 296 298 unless ($success) { 297 299 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
