| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
| Subject: | Re: running cygwin bash scripts from apache |
| Date: | Sat, 05 Aug 2006 12:56:55 -0500 |
| Lines: | 46 |
| Message-ID: | <eb2m57$2rd$1@sea.gmane.org> |
| References: | <loom DOT 20060805T133427-6 AT post DOT gmane DOT org> |
| Mime-Version: | 1.0 |
| User-Agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
| In-Reply-To: | <loom.20060805T133427-6@post.gmane.org> |
| OpenPGP: | url=hkp://random.sks.keyserver.penguin.de |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| 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 |
Robert Mark Bram wrote: > 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 Have you tried posix paths? i.e. #!/bin/bash > 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. Did you put the script in Apache's cgi-bin directory? or is Apache configur= ed to run scripts in the directory you used? > Could this be something to do with line endings? Do I have to specify som= e other > path for bash or configure Apach somehow? The above, no. But you'll have those problems too unless you use something= like: echo -e "whatever\r\n" > Any advice would be most appreciated! Look at the samples that Apache installs (in its cgi-bin directory), I think there is one shell script, one perl script and maybe other. --=20 Ren=E9 Berber -- 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 |