Turning a script into a CGI is a brain-dead easy way of web-enabling a script.
You could even make the script dual purpose by checking for the existence of CGI environment variables. If they exist the script is running as a CGI. There are lots of resources on the internet on how to write CGIs. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list