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 page on the python site has a good description and example of what you need to do to run a python CGI script. Start out with the simplest case first. Just make a short script that prints html.
#!/usr/bin/python #on windows change to your path to the python exe
print "Content-Type: text/html" # HTML is following
print # blank line, end of headers
print "CGI script output "
print "This is my first CGI script
"
print "Hello, world!"
When you try this the first time, the hardest part is usually figuring out where to put the script and how to make the web server recognize and run it. If you are using an apache web sever, take a look at these configuration steps.
Once you have this simple script working, you will just need to add an html form and button tag and use the action property to point it to scripts you want to run.