my $cmd = "blastp -query ".$TmpDir."/".$count.".fasta -db ".$Dir."/".$count.".db -outfmt 6"; $pid=open3($wtr, $rdr, $err, $cmd); waitpid($pid, 0);