#!/bin/bash tsdb_home="/export/apache/virtual/cl-www/docs/tsnlp/tsdb" tsdb="${tsdb_home}/tsdb" top="${tsdb_home}/bin/top" revert="${tsdb_home}/bin/revert" queries="${tsdb_home}/log/queries" echo Content-type: text/html echo title() { cat << EOF tsdb(1) Query Statistics

tsdb(1) Query Statistics


EOF } # title() selection() { options=$(/bin/tail -25 $queries | $revert | /bin/sed 's/^/