#!/bin/sh echo "Content-type: text/html" echo echo echo "Kernel messages" echo "

Kernel messages

" echo echo "
"

if [ ! -f /tmp/kmsg ]; then
  cat /proc/kmsg > /tmp/kmsg &
  sleep 2
fi

cat /tmp/kmsg

echo "
" echo echo echo ""