Hi,

I am again stuck with a problem, depicting as bellow.
I want to send a request from the perl file to the
server. The server receives the request with a cgi
file which will process the request by executing a
system command and send back the result.
But my cgi script is not executing the system command.
The cgi script I wrote as

file3.cgi-----------
 #!/usr/bin/perl -w

   use CGI;

   print "Content-type:text/plain\n\n";

   $query = new CGI;

   print "blast\n";

   $str = $query->param('st');

   print "here the string is : $str\n";

   system("/home/soumya/Application/BLAST/blastall -p
blastn -d /home/soumya/Application/BLAST/data/ecoli.nt
-i /var/www/cgi-bin/bic_genscan/testseq -o
/var/www/cgi-bin/bic_genscan/testblastout");
-------------------------

This command is calling another program(blastall)
residing in /home/soumya/Application/BLAST, and -p,
-d, -i and -o are the arguments required as a
parameter.
This command should create a file (testblastout) in
the directory(/var/www/cgi-bin/bic_genscan), as I've
passed the name as the argument (-o
/var/www/cgi-bin/bic_genscan/testblastout) in the
command.
But it is not creating any file there. Then I wrote a
perl script so that the job could be done.


perl1.pl------------------
#!/usr/bin/perl

$str = shift;
chomp = $str;

print "received the sequence\n";
system("/home/soumya/Application/BLAST/blastall -p
blastn -d /home/soumya/Application/BLAST/data/ecoli.nt
-i /var/www/cgi-bin/bic_genscan/\"$str\" -o
/var/www/cgi-bin/bic_genscan/testblastout");
print "done...\n";
-----------------------------

And replaced the system... line in cgi file with
  system("./perl1.pl testseq");
Still it is not executing the system command.

If I run this perl file alone without calling it from
any other file then it executes.
What should I do to run the system command either from
cgi or perl file in this above scenario.

With regards,
Soumyadeep


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to