X-Spam-Check-By: sourceware.org Message-ID: <44D4A703.6090203@ukf.net> Date: Sat, 05 Aug 2006 15:11:15 +0100 From: Max Bowsher 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: In-Reply-To: OpenPGP: id=C0F2C580 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8ACB8A762BD3F5F5AF7D8E9E" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 "" > echo "" > echo "=3D=3Dtest=3D=3D" > echo "" > echo "" >=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--