Changeset 12937 for trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl
- Timestamp:
- Apr 19, 2007, 6:00:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl
r12936 r12937 15 15 $telescope, # Telescope used 16 16 $workdir, # Working directory to append 17 $dbname, # Database name 17 18 ); 18 19 GetOptions( … … 20 21 'telescope|t=s' => \$telescope, 21 22 'workdir=s' => \$workdir, 23 'dbname=s' => \$dbname, 22 24 ) or pod2usage( 2 ); 23 25 24 26 pod2usage( 25 -msg => "Required options: --camera --telescope --workdir ",27 -msg => "Required options: --camera --telescope --workdir --dbname", 26 28 -exitval => 3, 27 ) unless defined $camera and defined $telescope and defined $workdir ;29 ) unless defined $camera and defined $telescope and defined $workdir and defined $dbname; 28 30 29 31 my $ipprc = PS::IPP::Config->new(); # IPP configuration … … 66 68 67 69 foreach my $exp ( @ARGV ) { 68 my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -workdir $workdir - imfiles " . (scalar @classes or 1) ; # Command to run70 my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -workdir $workdir -dbname $dbname -imfiles " . (scalar @classes or 1) ; # Command to run 69 71 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 70 72 run( command => $command, verbose => 1 ); … … 80 82 $filename = File::Spec->catfile( $workdir_abs, $filename); 81 83 $filename = $ipprc->convert_filename_relative( $filename ); 82 my $command = "$pxinject -newImfile -exp_tag $exp_tag -class chip -class_id $class_id -uri $filename "; # Command to run84 my $command = "$pxinject -newImfile -exp_tag $exp_tag -class chip -class_id $class_id -uri $filename -dbname $dbname"; # Command to run 83 85 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 84 86 run( command => $command, verbose => 1 ); … … 91 93 $filename = File::Spec->catfile( $workdir_abs, $filename); 92 94 $filename = $ipprc->convert_filename_relative( $filename ); 93 my $command = "$pxinject -newImfile -exp_tag $exp_tag -class fpa -class_id fpa - uri $filename"; # Command to run95 my $command = "$pxinject -newImfile -exp_tag $exp_tag -class fpa -class_id fpa -dbname $dbname -uri $filename"; # Command to run 94 96 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 95 97 run( command => $command, verbose => 1 );
Note:
See TracChangeset
for help on using the changeset viewer.
