colorizing files from the web


  • If you prefer working with perl, grab events.pl
  • If you prefer working with python, grab events.py
Then (after chmod u+x get.p*, ...) try either script from your command line. It should dump some html text to your screen. It will look better when it is rendered through a web browser. Change the name of the script to events.cgi. Then chmod a+x events.cgi. Put it anywhere within your http directory on rossby, and see if you can access it from the web. Here is mine accessing the practice file, which includes the three additional colorizations that you must do as part of the task. Here is mine accessing OU's current files. Bad news!On February 4, 2004 I learned that the OU calendar service has been discontinued. What bad luck! That means that this assignment will have to be completed using only the practice file..

This is a simple cgi program that does not accept any user input. (We will learn more cgi in another tutorial, where the user will be able to send information to your program from a form). As you edit and tinker with your program, you may find it easier to debug by testing it from your command line.


Game over. Here are the answers to the 2004 task:
  • If you prefer working with perl, grab events2.pl
  • If you prefer working with python, grab events2.py