Apache 2.0.44 offers download instead of executing Batch File

This is a discussion on Apache 2.0.44 offers download instead of executing Batch File within the Windows Web Servers forums, part of the Web Server and Related Forums category; You win the prize. OK there's no prize, but your solution is the one that worked. Thanks! Rach "...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-09-2003
rach
 
Posts: n/a
Default Re: Apache 2.0.44 offers download instead of executing Batch File

You win the prize. OK there's no prize, but your solution is the one that
worked.

Thanks!

Rach


"Si Ballenger" <shb*NO*SPAM*@comporium.net> wrote in message
news:3f0a8c90.236169033@news.comporium.net...
> On Mon, 07 Jul 2003 02:51:32 GMT, "rach"
> <kjkfjgndfjg.fgdfg@dfgdnfgdf.net> wrote:
>
> >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

>
> Possible problems:
> 1) You need to have perl setup inorder to run perl scripts.
> 2) The line of text in your .bat file does not have html
> formatting.
> 3) Anything after a ? will be passed to stdin on the webserer
> computer as the enviromental variable query_string.
>
> Copy the below, paste in notepad, and save in the cgi-bin folder
> as htm.bat. AMake a link to it and see how it runs.
>
> ==========htm.bat below=============
>
> @Echo OFF
> Echo Content-type: text/html
> Echo.
> Echo ^<HTML^>
> Echo ^<HEAD^>
> Echo ^<TITLE^>Script Command start-zoom^</title^>
> Echo ^</head^>
> Echo ^<BODY^>
> Echo ^<H1^>Start-zoom Results^</h1^>
> Echo Initiating command now:
> Echo /////////////////////
> ECHO It works!
> Echo /////////////////////
> Echo Report any failures to:
> Echo ^<A Href="mailto:me@home.now"^>me@home.now^</a^>.
> Echo ^</body^>
> Echo ^</html^>
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0