Guide to compiling, installing, and using the TextClock C++ CGI program.
tar xzf textclock-cpp.tar.gz
cd textclock-cpp
g++ -O2 -o textclock textclock.cpp
./textclock
Should output the current date and time.
cp textclock /usr/local/apache/cgi-bin/
chmod 755 /usr/local/apache/cgi-bin/textclock
Use the same SSI syntax as the Perl version:
<!--#exec cgi="/cgi-bin/textclock"-->
<!--#exec cgi="/cgi-bin/textclock?format=%A,+%B+%d,+%Y"-->
<!--#exec cgi="/cgi-bin/textclock?format=%I:%M+%p"-->
-staticstrip textclock