mirror of
https://github.com/NishiOwO/ncsa-httpd.git
synced 2025-04-21 08:44:40 +00:00
31 lines
478 B
Bash
Executable File
31 lines
478 B
Bash
Executable File
#!/bin/sh
|
|
|
|
CAL=/bin/cal
|
|
|
|
echo Content-type: text/html
|
|
echo
|
|
|
|
if [ -x $CAL ]; then
|
|
if [ $# = 0 ]; then
|
|
cat << EOM
|
|
<HTML><HEAD><TITLE>Calendar</TITLE></HEAD><BODY>
|
|
<H1>Calendar</H1>
|
|
|
|
<ISINDEX>
|
|
|
|
To look up a calendar month, type the month followed by a space then the year.<P>
|
|
Example: <code>3 1993</code> would give the calendar for March 1993.
|
|
|
|
EOM
|
|
else
|
|
echo \<PRE\>
|
|
$CAL $*
|
|
echo \</PRE\>
|
|
fi
|
|
else
|
|
echo Cannot find cal on this system.
|
|
fi
|
|
cat << EOM
|
|
</BODY></HTML>
|
|
EOM
|