foreach my $hldfile (@sorted_data){
my $cmd = "rm $hldfile";
- #print "exe: $cmd, total RM size: $total_rm_size MB\n" if( $opt_verb );
+ print "exe: $cmd, total RM size: $total_rm_size MB\n" if( $opt_verb );
+
#system($cmd);
-
+ # JAM: do not remove file before geting its size...
#- Convert to MBytes
$total_rm_size = $total_rm_size + int((stat($hldfile)->size) / 1024 / 1024);
-
+ system($cmd);
if($total_rm_size >= $nrOfMB2rm){
last;
}