[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] CGI Script Error
- Subject: Re: [cobalt-developers] CGI Script Error
- From: shimi <shimi@xxxxxxxxxxxxxxxx>
- Date: Sun Apr 1 13:46:02 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
I don't know what are the two dashes after /usr/bin/perl, but THIS code,
works:
--------> CUT HERE <--------
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><body> Hello, World !!!</body></html>";
exit;
--------> CUT HERE <--------
Best regards,
shimi [mailto:shimi@xxxxxxxxxxxxxxxx]
----
Some quotes:
"Outlook is a massive flaming horrid blatant security violation, that
also happens to be a mail reader."
"There are two major products that come out of Berkeley: LSD and BSD.
We don't believe this to be a coincidence."
-- Jeremy S. Anderson
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
BSD: "Are you guys coming or what?"
On Mon, 2 Apr 2001, Siao Yuan Tan wrote:
> Dear all,
>
> I am new to CGI scripting, but our customer need to use CGI in the cobalt
> server for their website. I try it myself, at first it won't run because
> the owner of the file is incorrect, and i did not chmod 755 to the script.
> After I do so, I get the following error:
> -------------------
> This message usually indicates there is a problem with the script itself.
> Often this indicates either that the #! line of the script is incorrect, or
> the script was uploaded in binary mode instead of ascii mode. Check to make
> sure that the script does not have control-M's at the end of every line.
> That will prevent it from executing. An easy fix that takes care of this
> most of the time is to put '#!/.../perl --' instead of '#!/.../perl' on the
> first line of the script.
> ---------------------
>
> So I change the first line as well and I get Internal Server Error: The
> server encountered an internal error or misconfiguration and was unable to
> complete your request.
>
> My code is simple and few lines only, can someone tell me did I miss out
> anything?
>
> #!/usr/bin/perl --
> use CGI;
>
> print "<html>";
> print "<body>";
>
> print "test";
> print "</body>";
> print "</html>";
> exit 0;
>
> Thanks for any advise and help.
>
> Siao Tan
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>