[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] code red shell script
- Subject: [cobalt-users] code red shell script
- From: Olaf Alders <olaf@xxxxxxxxxxxxxxx>
- Date: Thu Aug 9 23:40:09 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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