#!/bin/csh -f

echo "Content-type: text/html\n"

cat <<EOF

<form type=post action="sendtoserver.cgi"><input name=cmd></form>

EOF

set logfiles=(private/"(commercial software)"/logs/log*)
set lastlog="$logfiles[$#logfiles]"

echo -n "<P> Here are the last 400 lines of a "
wc -l < "$lastlog"
echo "line log:<br>"
echo "<pre>"
tail -400 "$lastlog"
echo "\n--- end of log ---\n</pre>"


