Received: (qmail 11429 invoked by uid 2012); 8 Dec 1999 21:35:56 -0000 Message-Id: <19991208213556.11426.qmail@hyperreal.org> Date: 8 Dec 1999 21:35:56 -0000 From: Warren Van Wyck Reply-To: wvw@zoo.uvm.edu To: apbugs@hyperreal.org Subject: Rexx CGI scripts fail for Windows only. X-Send-Pr-Version: 3.2 >Number: 5443 >Category: mod_cgi >Synopsis: Rexx CGI scripts fail for Windows only. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Dec 8 13:40:01 PST 1999 >Closed-Date: Sun Jul 16 19:21:46 PDT 2000 >Last-Modified: Sun Jul 16 19:21:46 PDT 2000 >Originator: wvw@zoo.uvm.edu >Release: 1.3.9 >Organization: >Environment: Windows 98 >Description: This works with Linux and AIX Apaches. When using the '#!' line for a CGI script, with Windows 98 the first line is ALSO passed to the Script Interpreter. This is OK for Perl and Csh, etc. where # starts a comment line. From the error.log file: [Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Premature end of scr ipt headers: c:/program files/apache group/apache/cgi-bin/wvwcgi.rex [Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] 1 *-* # [Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Error 13 running c:\ program files\apache group\apache\cgi-bin\wvwcgi.rex line 1: Invalid character in program [Wed Dec 08 15:51:56 1999] [error] [client 132.198.110.123] Error 13.1: Incorre ct character in program "#" ('23'X) Where wvwcgi.rex is: #!c:/objrexx/rexx /* Magic does NOT work 12/8/99 */ Say "Content-type: text/html" Say "" Say "This CGI script works! Object Rexx"; >How-To-Repeat: Yes, but the Web client will only show the "Internal Server Error" -- it's the error.log file that shows the error. >Fix: Windows Apache handling of the '#!' line should bypass that line also. >Release-Note: >Audit-Trail: State-Changed-From-To: open-feedback State-Changed-By: stoddard State-Changed-When: Wed Dec 8 14:03:18 PST 1999 State-Changed-Why: Read up on the ScriptInterpreterSource directive. You will need to: 1. remove the #! from the script You say this works on Unix but not Windows. This implys that the rexx interpreter is not working the same way on Windows, but nevermind that for now... 2. Create a file association with the .rex extension in the registry. Your rexx package may have already done that when it was installed. Basically, you need to tell Windows what .exe needs to be run against files with type .rex Let me know if this works for you. If it does, I'll update the FAQ Comment-Added-By: coar Comment-Added-When: Wed Jun 7 12:52:10 PDT 2000 Comment-Added: [This is a standard response.] This Apache problem report has not been updated recently. Please reply to this message if you have any additional information about this issue, or if you have answers to any questions that have been posed to you. If there are no outstanding questions, please consider this a request to try to reproduce the problem with the latest software release, if one has been made since last contact. If we don't hear from you, this report will be closed. If you have information to add, BE SURE to reply to this message and include the apbugs@Apache.Org address so it will be attached to the problem report! State-Changed-From-To: feedback-closed State-Changed-By: wrowe State-Changed-When: Sun Jul 16 19:21:45 PDT 2000 State-Changed-Why: [This is a standard response.] No response from submitter, assuming issue has been resolved. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]