Assuming I dropped the extension (.exp), and just named the script 'script'. I have it chmod'd 755. It is owned by root. When I execute it in my web browser, it still tries to download the script instead of executing it.
----- Original Message ----- From: "Alan Stewart" <[EMAIL PROTECTED]> To: "Ben Russell" <[EMAIL PROTECTED]> Sent: Wednesday, March 03, 2004 12:14 PM Subject: Re: PAR and Web applications > On 3 Mar 2004 at 11:35, Ben Russell wrote: > > > How can I get apache to execute this script then like it would a .exe file > > (as opposed to asking the Client to download the .exe file)? Instead of > > having to decompile it back to a perl script? > > > > > > I am running Red Hat Linux 7.3, Apache 1.3, and Perl 5.6.1. Any help > > would be appreciated. Thanks. > > > > I saw the .exe in your first email and answered as if you were running Apache on > Windows, but you say Red Hat. Why would you use an .exe extension (or a modified .exp) > extension on Linux? If it IS Windows, the extension matters; if it IS Linux, the > permissions matter (as Morbus said). > > Not sure what you mean by "decompile"? A pp packed file has the same par.pl/PAR file in > it whether you use "-P" or not. Without "-P" a binary header is put on the front of the > script, so it is not necessary to invoke the installed perl. With "-P", it starts out > as a plain text par.pl file with the PAR at the backend, and runs like any other perl > script. >
