hi all,
i've been trying to write a perl cgi script to generate an html output of the blast (program) and it's parsed results on the browser. following are some of the few lines from the script. the thing is, the script seems to be working fine when i run on the terminal (ie, perl <scriptname.cgi>), but i can't get the same output on the browser, when i give a sequence (input) on the text area of the html form. $seq variable seems to be storing the input, but somehow "repo.bls" of the "system("blastall -p blastp -d dbase -i $seq -o repo.bls");" line doesn't seem to be doing its job, and ofcourse there's no output on the browser as well.
your help will be greatly appreciated.
thanks a lot in advance.
- DJ
#######scriptname.cgi#########
use CGI;
use Bio::Perl;
use Bio::SearchIO;
use Bio::DB::GenPept;
my $query=new CGI;
print STDOUT $query->header();
.....
my $seq=$query->param("sequence");
......
system("blastall -p blastp -d dbase -i $seq -o repo.bls");
my $in = new Bio::SearchIO(-format => 'blast', -file => 'repo.bls');
while( my $result = $in->next_result ) {....
.........