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 "...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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^> > |