IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14368


Ignore:
Timestamp:
Jul 24, 2007, 2:34:10 PM (19 years ago)
Author:
Paul Price
Message:

Fixing to use new database structure and interaction.

File:
1 edited

Legend:

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

    r12800 r14368  
    1313
    1414my ($dbname,                    # Database name to use
    15     $workdir,                   # Working directory
    1615    );
    1716GetOptions(
    1817           'dbname|d=s'  => \$dbname,
    19            'workdir|w=s' => \$workdir,
    2018) or pod2usage( 2 );
    2119
     
    5452
    5553            foreach my $item (@$list) {
    56                 my $exp_tag = $item->{exp_tag};
    57                 my $class = $item->{class};
    58                 my $class_id = $item->{class_id};
     54                my $exp_id = $item->{exp_id};
     55                my $exp_name = $item->{tmp_exp_name};
     56                my $class_id = $item->{tmp_class_id};
     57                my $workdir = $item->{workdir};
    5958                my $uri = $item->{uri};
    6059               
    61                 my $command = "$register_imfile --exp_tag $exp_tag --class $class --class_id $class_id --uri $uri --dbname $dbname";
     60                my $command = "$register_imfile --exp_id $exp_id --tmp_class_id $class_id --tmp_exp_name $exp_name --uri $uri --dbname $dbname";
    6261                $command .= " --workdir $workdir" if defined $workdir;
    6362                my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    6463                    run( command => $command, verbose => 1 );
    65                 die "Unable to do phase 0 imfile processing on $exp_tag $class_id: $error_code\n" if not $success;
     64                die "Unable to do phase 0 imfile processing on $exp_name $class_id: $error_code\n" if not $success;
    6665            }
    6766
     
    9392
    9493            foreach my $item (@$list) {
    95                 my $exp_tag = $item->{exp_tag};
     94                my $exp_tag = $item->{tmp_exp_name} . '.' . $item->{exp_id};
     95                my $exp_id = $item->{exp_id};
     96                my $workdir = $item->{workdir};
    9697               
    97                 my $command = "$register_exp --exp_tag $exp_tag --dbname $dbname";
     98                my $command = "$register_exp --exp_tag $exp_tag --exp_id $exp_id --dbname $dbname";
    9899                $command .= " --workdir $workdir" if defined $workdir;
    99100                my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.