delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Robert Mark Bram <robert DOT bram AT colesmyer DOT com DOT au> |
Subject: | running cygwin bash scripts from apache |
Date: | Sat, 5 Aug 2006 11:39:18 +0000 (UTC) |
Lines: | 26 |
Message-ID: | <loom.20060805T133427-6@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi All, I have Apache and Cygwin. I would like to run bash scripts from Apache, but am unsure as to how to do it. Do I need to configure Apache for this at all? I have seen some posts on the newsgroups that suggest I just need to have a script that references bash through the shebang line. This is what I tried: #!C:/cygwin/bin/bash.exe echo -e "Content-type: text/html\n\n" echo "<html>" echo "<body>" echo "==test==" echo "</body>" echo "</html>" All I get is the whole script displayed in my browser. Could this be something to do with line endings? Do I have to specify some other path for bash or configure Apach somehow? Any advice would be most appreciated! Rob :) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |