[Tutor] cgi question

Denis spirou@aragne.com
Sat, 19 Aug 2000 06:58:14 +0200

Le Fri, Aug 18, 2000 at 09:23:42PM -0700, Peter Curran pianota:
> Hello everyone.
> I noticed that the O'Reilly explanation on pg. 279 says: "To start, the
> first line of the program needs to refer to the python executable. ...
> The second line includes import cgi ..."
Yes, you have to prepend a #!path_to_python as a first line
for example :
#!/usr/bin/env python
or whatever

Check the access rights on the file, too.

Good luck.


P3B    : Club Free-Pytho-Linuxien Caroloregien http://www.p3b.org
Aragne : Internet - Reseaux - Formations  http://www.aragne.com