IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2007, 6:00:58 PM (19 years ago)
Author:
Paul Price
Message:

Adding dbname to parameter list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_serial_inject_mosaic.pl

    r12936 r12937  
    1515    $telescope,                 # Telescope used
    1616    $workdir,                   # Working directory to append
     17    $dbname,                    # Database name
    1718    );
    1819GetOptions(
     
    2021           'telescope|t=s' => \$telescope,
    2122           'workdir=s' => \$workdir,
     23           'dbname=s' => \$dbname,
    2224) or pod2usage( 2 );
    2325
    2426pod2usage(
    25           -msg => "Required options: --camera --telescope --workdir",
     27          -msg => "Required options: --camera --telescope --workdir --dbname",
    2628          -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;
    2830
    2931my $ipprc = PS::IPP::Config->new(); # IPP configuration
     
    6668
    6769    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 run
     70        my $command = "$pxinject -newExp -exp_id $exp -inst $camera -telescope $telescope -workdir $workdir -dbname $dbname -imfiles " . (scalar @classes or 1) ; # Command to run
    6971        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7072            run( command => $command, verbose => 1 );
     
    8082            $filename = File::Spec->catfile( $workdir_abs, $filename);
    8183            $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 run
     84            my $command = "$pxinject -newImfile -exp_tag $exp_tag -class chip -class_id $class_id -uri $filename -dbname $dbname"; # Command to run
    8385            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8486                run( command => $command, verbose => 1 );
     
    9193            $filename = File::Spec->catfile( $workdir_abs, $filename);
    9294            $filename = $ipprc->convert_filename_relative( $filename );
    93             my $command = "$pxinject -newImfile -exp_tag $exp_tag -class fpa -class_id fpa -uri $filename"; # Command to run
     95            my $command = "$pxinject -newImfile -exp_tag $exp_tag -class fpa -class_id fpa -dbname $dbname -uri $filename"; # Command to run
    9496            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    9597                run( command => $command, verbose => 1 );
Note: See TracChangeset for help on using the changeset viewer.