ok...let's make a super simple web page just using bash (well...and some html)
the first 2 lines are required ofcourse
Code:
#!/bin/bash
# let's set how the script will be viewed
echo "Content-type: text/html"
echo ""
# now for the guts :)
echo "<html>"
echo "Today is " $(date)
# if we want to enter text from a command without it being changed
echo "The users logged onto the server are: "
# we would use the pre tag
echo "<pre>"
who
echo "</pre>"
echo "</html>"
and that is basically it...
now you just have to make it executable and stick it into the
<web server base>/cgi-bin/ directory
have fun with this....