Hi!
I have a corrupted compressed file. It opened well but after reading 3 lines it failed and return:
zcat: /home/denis/jf/jftemp/240DU050725230311JF.Z: corrupt input.
How can i control the error message.
Here my script:
#!/usr/bin/perl
$var="/home/denis/jf/jftemp/240DU050725230311JF.Z";
open(IN,"zcat $var|") || die "error $!";
while(<IN>){
print $_;
}
close IN;
I have a corrupted compressed file. It opened well but after reading 3 lines it failed and return:
zcat: /home/denis/jf/jftemp/240DU050725230311JF.Z: corrupt input.
How can i control the error message.
Here my script:
#!/usr/bin/perl
$var="/home/denis/jf/jftemp/240DU050725230311JF.Z";
open(IN,"zcat $var|") || die "error $!";
while(<IN>){
print $_;
}
close IN;