CGI script is in plain text

Ian Bicking ianb at
Fri Jul 4 08:27:44 CEST 2003

On Fri, 2003-07-04 at 00:39, BMA TRADING wrote:
> > Try renaming the file to .cgi -- as long as the #! line is right, it
> > doesn't matter the extension.  Also, you may have to put the script in
> > the cgi-bin directory.
> > 
> >   Ian
> > 
> Dear Ian,
> Thank you for your reply.
> I tried to rename it but it does NOT work.
> In the same directory I can successfully run Perl script( .pl extension) but no Python 
> scripts.
> Any idea?

Well, be sure the file is set as executable ("chmod +x filename").  If
all else fails, try a .pl extension :)  Who knows... might just work.


More information about the Python-list mailing list