[Tutor] cgi server script

Kirk Bailey idiot1 at netzero.net
Fri Sep 5 18:17:31 EDT 2003


I am rereading Python Web Programming. In it on opage 215 is a simple cgicapable 
script:

#! C:\PYTHON22\pythonw.exe
#
import CGIHTTPServer, BaseHTTPServer
httpd=BaseHTTPServer(('',8000), CGIHTTPServer.CGIHTTPRequestHandler)
httpd.serve_forever()
# this is a small but serviceable cgi server for your pc!

Well, I put it in my pc which also has idle. An alias was created, with the
properties:
target: C:\Python22\pythonw.exe "C:\PYTHON22\cgiserver.py"
start in: C:\Python22
It refuses to run, and the pythonw.exe terminates. Anyone care to offer some clues?


-- 

-- 

end

Cheers!
         Kirk D Bailey

  +                              think                                +
   http://www.howlermonkey.net  +-----+        http://www.tinylist.org
   http://www.listville.net     | BOX |  http://www.sacredelectron.org
   Thou art free"-ERIS          +-----+     'Got a light?'-Promethieus
  +                              think                                +

Fnord.





More information about the Tutor mailing list