#!/bin/bash
exec 2>>/tmp/mylogfile
set -x
uptime > /var/www/html/uptime.txt
echo "Content-type: text/html"
echo ""
echo "
Bash as CGI"
echo ""
echo "SERVER UPTIME (C) 2007"
echo ""
echo "Server Uptime for: linuxcore
"
echo "
"
echo `uptime`
echo "
"
echo " [ HOME ]
"
echo "Copyright (C) 2007, All Rights Reserved."
echo ""