running cygwin bash scripts from apache
Max Bowsher
maxb1@ukf.net
Sat Aug 5 14:11:00 GMT 2006
Robert Mark Bram wrote:
> 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!
Are you using the Apache packaged with Cygwin, or some other Windows
Apache? And, what version of Apache?
Max.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20060805/df0f0ac9/attachment.sig>
More information about the Cygwin
mailing list