 #!/bin/sh
 echo "HTTP/1.0  200 OK"                # [ Server 
 date -u '+Date: %A, %d-%b-%y %T GMT'   #   Response   
 echo Server: $SERVER_SOFTWARE          #   Headers ]
 echo "Content-type: multipart/x-mixed-replace;boundary=a1lpRf5fgFd1dr"
 echo ""
 echo "--a1lpRf5fgFd1dr"      # [initial boundary for first part]
 while true
do
   echo "Content-type: text/html"
   echo ""
   echo "<html><head>"
   echo "<title> Top Running Processes </title><head><body>"
   echo "<h1 align="center"> Top Running Processes at: <br />"
   date                    # [prints the current time and date]
   echo "</hr><hr />"
   echo "<pre>"
   /usr/local/bin/top -d1  # [Print out "top" running processes]
   echo "</pre></body></html>"
   echo echo "--a1lpRf5fgFd1dr"
   sleep 10
done

