slitaz-tools diff hacker/Public/cgi-bin/tests.sh @ rev 12

Add hacker directory with many examples file for $HOME
author Christophe Lincoln <pankso@slitaz.org>
date Sun Dec 02 21:02:03 2007 +0100 (2007-12-02)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/hacker/Public/cgi-bin/tests.sh	Sun Dec 02 21:02:03 2007 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +
     1.7 +# Variables.
     1.8 +HOST=`cat /etc/hostname`
     1.9 +RELEASE=`uname -r`
    1.10 +
    1.11 +# Content type.
    1.12 +echo -e "Content-Type: text/html\n"
    1.13 +
    1.14 +# Header.
    1.15 +echo "<html>"
    1.16 +echo "<head>"
    1.17 +echo "  <title>cgi-bin tests</title>"
    1.18 +echo "</head>"
    1.19 +echo "<body>"
    1.20 +
    1.21 +# Page content.
    1.22 +echo "<h1>Web server cgi-bin tests</h1>"
    1.23 +echo "<hr>"
    1.24 +echo "<p>"
    1.25 +echo "This script is runnig on $HOST with a Linux kernel $RELEASE."
    1.26 +echo "</p>"
    1.27 +
    1.28 +# Footer.
    1.29 +echo "</body>";
    1.30 +echo "</html>"