From the NCSA httpd distribution.
#!/bin/sh DATE=`which date` echo Content-type: text/html echo echo \<PLAINTEXT\> echo if [ -x $DATE ]; then $DATE else echo Cannot find date command on this system. fi