executing Perl CGI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idorjee
    New Member
    • Mar 2007
    • 76

    executing Perl CGI

    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("blasta ll -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
    #######scriptna me.cgi#########

    use CGI;
    use Bio::Perl;
    use Bio::SearchIO;
    use Bio::DB::GenPep t;

    my $query=new CGI;

    print STDOUT $query->header();
    .....
    my $seq=$query->param("sequenc e");
    ......
    system("blastal l -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 ) {....
    .........
  • naturalgoodness
    New Member
    • Jul 2007
    • 1

    #2
    Any solutions for this? I am having the same problem - blastall seems to run from a cgi script but no output is produced in the output file?

    The command runs perfectly and generates output from the command line so any ideas why it doesn't when called from the cgi script? Help!

    Comment

    Working...