View Single Post

  #10 (permalink)  
Old 07-07-2003
The Other Guy
 
Posts: n/a
Default Re: Apache 2.0.44 offers download instead of executing Batch File

On Mon, 07 Jul 2003 02:51:32 GMT, The Other Guy responded to a post
from "rach" <kjkfjgndfjg.fgdfg@dfgdnfgdf.net> who wrote in
comp.infosystems.www.servers.ms-windows:


>"jorge" <jorge@jorge.be> wrote in message
>news:734d12db.0307060009.4fe23a09@posting.google. com...
>> is it a script you made?
>> Ifso is a content-type given?


<top post reversed>
>Yeap, test.pl:
>
>#!e:\Programs\Perl\bin\perl.exe
>@echo off
>echo Content-Type: text/plain
>echo.
>echo Hello, world!
>
>And, test.bat
>@echo off
>echo Content-Type: text/plain
>echo.
>echo Hello, world!
>
>test.bat works with the ? at the end (sometimes) and test.pl just dumps
>with: "aborted due to compilation errors."
>
>Rach


I would suggest doing a perl -c (in a DOS prompt) on your test.pl file
to check your syntax. This will give you an indiction of the
compilation errors.

You have, it appears, the script on a different drive/partition than
where the Apache server is located. Do you have proper permissions set
for Apache to access that drive?

The test.bat looks like it should work OK. You will need to include
the "?" at the end in this case, I believe, because you want it to
pass any parameters (which, I think, is everything) and to make it
execute.

HTH
TOG

--
../configure --prefix=~/zyterion
Not this guy or that guy, The Other Guy.

This spot may contain a satirical comment or comedic source,
and is meant to be funny. If you are easily offended, gullible
or don't have a sense of humour we suggest you read elsewhere.