A simple Python CGI server?
chrisdewinN0SPAM at yahoo.com.au
Sat Nov 1 02:36:36 CET 2003
On Sat, 01 Nov 2003 00:02:39 +0200, Chris Liechti wrote:
> "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")
Ta. It was a permission-related problem.
More information about the Python-list