home *** CD-ROM | disk | FTP | other *** search
/ Magazyn WWW 1999 July / www_07_1999.iso / prez / amiga / apache_1_0_5.lha / apache_1.0.5 / cgi-bin / calendar < prev    next >
Text File  |  1993-12-07  |  409b  |  29 lines

  1. #!/bin/sh
  2.  
  3. CAL=/bin/cal
  4.  
  5. echo Content-type: text/html
  6. echo
  7.  
  8. if [ -x $CAL ]; then
  9.     if [ $# = 0 ]; then
  10.         cat << EOM
  11. <TITLE>Calendar</TITLE>
  12. <H1>Calendar</H1>
  13.  
  14. <ISINDEX>
  15.  
  16. To look up a calendar month, type the month followed by a space then the year.<P>
  17. Example: <code>3 1993</code> would give the calendar for March 1993.
  18.  
  19. EOM
  20.     else 
  21.         echo \<PRE\>
  22.         $CAL $*
  23.     fi
  24. else
  25.     echo Cannot find cal on this system.
  26. fi
  27.  
  28.  
  29.