The calendar above was done using a small PERL program and what
is called an exec cgi. We will be exploring this method
soon, so stay tuned...
If you are really impatient then here is the idea... Take the
line of code below and place it your HTML document where you
want to place the calendar.
<!--#exec cmd="./calprog.cgi" -->
calprog.cgi and place in it the same directory that your
HTML document is in. Make sure that the line:
Is the very first line in the script with no blank line above it!
After installing the script issue the command:
chmod 755 calprog.cgi
To test the program, at your prompt, enter the command:
You should see a bunch of HTML code go by. If you only get
the names of the days, check the program for the path to your
Unix cal program. If it does not run at all, recheck your
chmod 755 calprog.cgi and the path to perl in the
There are two potential problems. The first is that some systems
require that executable programs for use with SSI reside in a
special directory. The other is that they may have to end with
the extension .cgi Some systems also forbid this type
of program for security reasons. If so, please take a look at
the next section which deals with calling cgi-bin programs
If you cannot get this program to run, see if your system has
a FAQ on where to place executables for use with SSI.