I\'m a hobbyist (and fairly new) programmer who has written several useful (to me) scripts in python to handle various system automation tasks that involve copying, renaming
This simple approach requires nothing except Python standard library. Create this directory structure:
.
|-- cgi-bin
| `-- script.py
|-- index.html
`-- server.py
You put your scripts in "cgi-bin" directory, "index.html" contains links to scripts in "cgi-bin" directory (so you don't have to type them manually, although you could), and "server.py" contains this:
import CGIHTTPServer
CGIHTTPServer.test()
To run your server, just run "server.py". That's it, no Apache, no other dependencies.
HTH...