Changeset 16336 for trunk/ippScripts/scripts/ipp_serial_chip.pl
- Timestamp:
- Feb 6, 2008, 9:52:57 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/ipp_serial_chip.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_chip.pl
r15481 r16336 13 13 14 14 my ($dbname, # Database name to use 15 $workdir_default, # Default working directory 16 $verbose, # Verbose operations? 15 17 $no_op, # No operations? 16 18 $no_update, # No updating? 17 19 ); 18 20 GetOptions( 19 'dbname|d=s' => \$dbname, 21 'dbname=s' => \$dbname, 22 'workdir=s' => \$workdir_default, 23 'verbose' => \$verbose, 20 24 'no-op' => \$no_op, 21 25 'no-update' => \$no_update, 22 26 ) or pod2usage( 2 ); 23 27 24 pod2usage( 25 -msg => "Required options: --dbname", 26 -exitval => 3, 27 ) unless defined $dbname; 28 pod2usage( -msg => "Required options: --dbname --workdir", 29 -exitval => 3, 30 ) unless 31 defined $dbname; 32 33 $workdir_default = `pwd` unless defined $workdir_default; 28 34 29 35 my $mdcParser = PS::IPP::Metadata::Config->new; # Metadata config parser … … 35 41 die "Can't find required tools.\n" if $missing_tools; 36 42 37 # Phase 2 imfile processing43 # Imfile processing 38 44 my @whole; # The whole list for processing 39 45 { … … 65 71 my $reduction = $item->{reduction}; 66 72 my $workdir = $item->{workdir}; 67 68 my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera"; 73 $workdir = $workdir_default unless (defined $workdir or $workdir ne "NULL"); 74 75 my $outroot = $workdir . '/' . ${exp_tag} . '/' . ${exp_tag} . '.ch.' . ${chip_id}; 76 77 my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera --outroot $outroot"; 69 78 $command .= " --reduction $reduction" if defined $reduction; 79 $command .= " --verbose" if defined $verbose; 70 80 $command .= " --no-op" if defined $no_op; 71 81 $command .= " --no-update" if defined $no_update; 72 $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";73 82 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 74 83 run( command => $command, verbose => 1 );
Note:
See TracChangeset
for help on using the changeset viewer.
