delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <44D4A703.6090203@ukf.net> |
Date: | Sat, 05 Aug 2006 15:11:15 +0100 |
From: | Max Bowsher <maxb1 AT ukf DOT net> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050923 Thunderbird/1.0.7 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: running cygwin bash scripts from apache |
References: | <loom DOT 20060805T133427-6 AT post DOT gmane DOT org> |
In-Reply-To: | <loom.20060805T133427-6@post.gmane.org> |
OpenPGP: | id=C0F2C580 |
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 |
--------------enig8ACB8A762BD3F5F5AF7D8E9E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Robert Mark Bram wrote: > Hi All, >=20 > I have Apache and Cygwin. I would like to run bash scripts from Apache, b= ut am > unsure as to how to do it. Do I need to configure Apache for this at all? >=20 > 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 trie= d: >=20 > #!C:/cygwin/bin/bash.exe >=20 > echo -e "Content-type: text/html\n\n" > echo "<html>" > echo "<body>" > echo "=3D=3Dtest=3D=3D" > echo "</body>" > echo "</html>" >=20 > All I get is the whole script displayed in my browser. >=20 > Could this be something to do with line endings? Do I have to specify som= e other > path for bash or configure Apach somehow? >=20 > Any advice would be most appreciated! Are you using the Apache packaged with Cygwin, or some other Windows Apache? And, what version of Apache? Max. --------------enig8ACB8A762BD3F5F5AF7D8E9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFE1KcIfFNSmcDyxYARAvthAJ9jf4jM4UhQXORoNxQcyjWxKQhS6QCgsSqy SBxeDtk43hBXkiqnCGXGzFU= =8V91 -----END PGP SIGNATURE----- --------------enig8ACB8A762BD3F5F5AF7D8E9E--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |