On Thu, Mar 27, 2003 at 10:50:39PM -0800, Soumyadeep nandi wrote:
> [Fri Mar 28 11:53:28 2003] [error] [client
> 203.90.127.104] malformed header from script. Bad
> header=BLASTN 2.2.4 [Aug-26-2002]:
> /usr/local/apache/cgi-bin/local/file3.cgi
> Name "main::FH" used only once: possible typo at
> /usr/local/apache/cgi-bin/local/file3.cgi line 4.
[...]
> Could you please suggest me any solution for this.
> If there is any way to change the header.

Soumyadeep,

Sounds like perl is sending you a warning about your script.

This problem may be off topic for this list.


1)
  change the perl command line to be:

  #! /usr/bin/perl -w

  then run the command from a prompt like:

  ./script_name > /dev/null

  You should see the warning mentioned in the apache logs,

  - If you see warnings correct them all until you can run the 
    script like above and see nothing... it should then work in apache.

  - If you don't see any warnings when doing the command above something
    else is wrong... send the first few lines of output from:
    ./script_name 2>&1 | head

    Later,
      Mike Simons

Reply via email to