A simple Python CGI server?
Chris Liechti
cliechti at gmx.net
Fri Oct 31 23:02:39 CET 2003
"Dfenestr8" <chrisdewinN0SPAM at yahoo.com.au> wrote in
news:pan.2003.10.31.18.54.52.907463 at yahoo.com.au:
> I'm just a hobbyist and I like mucking around with cgi scripts.
did you look ak CGIHTTPServer.py's "test()" function? you can actualy run
that module to get your server.
[...]
> For some reason, I get these weird permission errors sometimes when I
> use it ... such as:
>
> "OSError: [Errno 13] Permission denied"
>
> Sometimes my scripts produce this error, sometimes they don't. Can
> anybody explain this?
on different scripts? or on the same wheny ou try it several times?
if its the former problem, make sure that you save all your cgis with
"#!/usr/bin/env python" (or similar) as the first line, make it executable
and world readable (chmod a+rx script.py")
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list