Bash (CGI) error
Posted by: jonks
Posted on: 2006-02-04 00:59:00
Does anyone know why this (simple) bash script produces
"Premature end of script headers" in the apache error log?
The script is saved as test.cgi. file chmod=655. Dir=655.
I cannot see anything what is wrong with it. (OK - it's 1am at the moment - give me a break!)
#!/bin/bash
echo "Content-Type: text/html"
echo ""
echo "<html>"
echo "<head><title>Bash as CGI</title></head>"
echo "<body>"
echo "<h1>Hello world</h1>"
echo "</body>
echo "<html>"