- Timestamp:
- Oct 25, 2012, 11:09:49 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/tools/fixburntool (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/fixburntool
r34364 r34591 6 6 use strict; 7 7 use warnings; 8 8 9 use Carp; 9 10 use IPC::Cmd 0.36 qw( can_run run ); … … 28 29 my $class_id; 29 30 my $dbname = 'gpc1'; 30 my $verbose = 1;31 my $verbose = 0; 31 32 GetOptions( 32 33 'exp_id|e=s' => \$exp_id, … … 35 36 ) or pod2usage( 2 ); 36 37 37 die "usage: $0 (exp_id)(class_id)\n" unless $class_id and $exp_id;38 die "usage: $0 --exp_id (exp_id) --class_id (class_id)\n" unless $class_id and $exp_id; 38 39 39 40 $regtool .= " -dbname gpc1 -exp_id $exp_id -class_id $class_id"; … … 45 46 my $command = "$regtool -processedimfile"; 46 47 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 47 run(command => $command, verbose => 0);48 run(command => $command, verbose => $verbose); 48 49 unless ($success) { 49 50 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); … … 68 69 my $command = "neb-stat $table"; 69 70 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 70 run(command => $command, verbose => 0);71 run(command => $command, verbose => $verbose); 71 72 if ($success) { 72 73 $table_exists = 1; … … 96 97 # print "$left $num $end\n"; 97 98 98 99 99 my $prev = $num - 1; 100 100 my $prev_name = sprintf "$left%04d$end", $prev; … … 105 105 # print "$prev_name $prev_uri\n"; 106 106 107 108 107 { 109 108 my $command = "$burntool --continue 10 --exp_id $exp_id --class_id $class_id --this_uri $uri --previous_uri $prev_uri"; 110 109 print "$command\n"; 111 110 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 112 run(command => $command, verbose => 0);111 run(command => $command, verbose => 1); 113 112 unless ($success) { 114 113 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
