[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] code red shell script



on 8/10/01 5:46 AM, Carrie Bartkowiak at ravencarrie@xxxxxxxx wrote:


> That's because it's not a CGI script, it's a shell script - running
> it through the cgi wrapper was causing the error.
> Sorry I didn't see this one earlier or would've suggested taking the
> extention off, still replying though because I thought you might like
> to know *why* taking the name off made it work.


Actually, it works fine with a .cgi extension on my machine.  I initially
got an error, which was due (I think) to the fact that the http header
needed an extra new-line after it and the words content and type need to
have their initial letters in upper case.  It works now with the following
lines at the beginning:

#!/bin/sh
echo "Content-Type: text/html

<H1>Getting Code Red Data...</H1>

"

Olaf


-- 
Olaf Alders

olaf@xxxxxxxxxxxxxxx
http://vilerichard.com