#!/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 "" echo " Top Running Processes " echo "

Top Running Processes at:
" date # [prints the current time and date] echo "
" echo "
"
   /usr/local/bin/top -d1  # [Print out "top" running processes]
   echo "
" echo echo "--a1lpRf5fgFd1dr" sleep 10 done