IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2013, 3:49:07 PM (13 years ago)
Author:
watersc1
Message:

Functional version of the task and script that I'm running on a test pantasks now. The load step is unreasonably slow, but that may just be due to the host I"m running the pantasks_server on (ippc25).

The date based iteration seems to be working correctly.

File:
1 edited

Legend:

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

    r36203 r36221  
    2828GetOptions(
    2929    'server|s=s'     => \$server,
    30     'dbname       => \$dbname,
     30    'dbname=s'       => \$dbname,
    3131    'exp_id|x=s'     => \$exp_id,
    3232) || pod2usage( 2 );
     
    3636pod2usage( -msg => "Required options: --server", -exitval => 2 )
    3737    unless $server;
     38pod2usage( -msg => "Required options: --dbname", -exitval => 2 )
     39    unless $dbname;
    3840pod2usage( -msg => "missing key", exitval => 2 )
    3941    unless defined $exp_id;
     
    217219        $quality[0] = 1;
    218220        print "cp $good_file $files[0]\n";
     221        system("cp $good_file $files[0]");
     222# Begin my best validation thought
     223        {
     224            my $fh;
     225            open($fh,$files[0]);
     226            my $tmpmd5 = Digest::MD5->new->addfile($fh)->hexdigest;
     227            close($fh);
     228            if ($tmpmd5 ne $md5sum) {
     229                die "Post-replication md5sum does not match! $tmpmd5 != $md5sum";
     230            }
     231        }
     232# End my best validation thought.
     233
    219234        $Ngood = 1;  # We now hand off this single valid instance object to be handled by the Ngood=1 case.
    220235    }
     
    265280                @$uris = map {URI->new($_)->file if $_} @$uris;
    266281
    267                 print $uris . " " . ${ $uris }[0] . " \n";
     282#               print $uris . " " . ${ $uris }[0] . " \n";
    268283                my $fh;
    269284                open($fh,${ $uris }[0]);
     
    287302        }
    288303        for (my $i = 0; $i <= $#files; $i++) {
    289             print "$existance[$i] $quality[$i] $md5sums[$i] $md5sum $diskhosts[$i] $diskvols[$i]\n";
     304#           print "$existance[$i] $quality[$i] $md5sums[$i] $md5sum $diskhosts[$i] $diskvols[$i]\n";
    290305            if ($quality[$i] != 1) {
    291306                my $cull_vol = $diskhosts[$i] . "." . $diskvols[$i];
Note: See TracChangeset for help on using the changeset viewer.