#!/bin/sh echo "HTTP/1.0 200 Boogers" 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 -d1 10 # [print info for top 10 processes then stop]
echo ""
echo echo "--a1lpRf5fgFd1dr"
sleep 10
done