Changeset 25418 for trunk/ippScripts/scripts
- Timestamp:
- Sep 16, 2009, 9:44:29 AM (17 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
register_imfile.pl (modified) (3 diffs)
-
summit_copy.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_imfile.pl
r23831 r25418 34 34 my $ppStatsFromMetadata = can_run( 'ppStatsFromMetadata' ) or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 35 35 36 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $ dbname, $verbose, $no_update, $no_op, $logfile);36 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile); 37 37 GetOptions( 38 38 'caches' => \$cache, … … 41 41 'tmp_exp_name|n=s' => \$tmp_exp_name, 42 42 'uri|u=s' => \$uri, 43 'bytes=s' => \$bytes, 44 'md5sum=s' => \$md5sum, 43 45 'dbname|d=s' => \$dbname, # Database name 44 46 'verbose' => \$verbose, # Print to stdout … … 123 125 $command .= " -tmp_class_id $tmp_class_id"; # the original class_id supplied by the user, replace by ppStats CLASS.ID 124 126 $command .= " -uri $uri "; 127 $command .= " -bytes $bytes" if $bytes; 128 $command .= " -md5sum $md5sum" if $md5sum and ($md5sum ne 'NULL'); 125 129 $command .= " -hostname $host" if defined $host; 126 130 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/summit_copy.pl
r25371 r25418 105 105 # if so pass the results to pztool to the results in pzDownloadImfile. 106 106 # uncomment this to turn on 107 #my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress);107 my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress); 108 108 109 109 # command to update database … … 121 121 # XXX: TODO: see above. Don't do this until pztool and the DB have 122 122 # been updated 123 #$command .= " -md5sum $new_md5 -bytes $new_bytes";123 $command .= " -md5sum $new_md5 -bytes $new_bytes"; 124 124 125 125 # update the database … … 198 198 if ($b ne $new_bytes) { 199 199 $error = "size of $instances[$i] does not match $instances[0]"; 200 } elsif ($m !=$new_md5) {200 } elsif ($m ne $new_md5) { 201 201 $error = "md5sum of $instances[$i] does not match $instances[0]"; 202 202 }
Note:
See TracChangeset
for help on using the changeset viewer.
