Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

Date Script

The following CGI script displays the current date using the unix command "date". For more information about using CGI scripts, see our CGI-Related FAQs. Purdue Engineering Computer Network
file: ~/public-web/date.cgi

	#!/bin/sh

echo "Content-type: text/html"
echo ""
echo "<HTML>"
echo "<BODY>"
echo "<PRE>"
/usr/bin/date
echo "</PRE>"
echo "</BODY>"
echo "</HTML>"

exit 0

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Mar 20, 2007 5:23 pm GMT-4 by admin
JumpURL: