in reply to Display Results

aixmike
Im not sure exactly what your end goal is, but for AIX have you tried using nmon, rrdtool, and nmon2rrd. If all you need are performance stats why reinvent the wheel? Or if you just want what you have try perldoc CGI. That might be more of what youre looking for.
The code below is simplistic, but might get you off on the right foot.
If its on a local box ie not on the internet, Id just run this from /cgi-bin/.
#!/usr/bin/perl -w use strict; use CGI qw/:standard/; print header; print start_html; my @SAR=qx/sar/; for (@SAR) { print } print end_html;
Ted
--
"Men have become the tools of their tools."
  --Henry David Thoreau

Replies are listed 'Best First'.
Re^2: Display Results
by aixmike (Novice) on Apr 28, 2005 at 20:05 UTC
    This is quick and easy, but produces the same results. It is just UNformatted test in a browser.
    AIX beips88 2 5 000C79AF4C00 04/28/05 System Configuration: lcpu=6 07: +59:00 %usr %sys %wio %idle 08:19:00 0 0 0 100 08:39:00 0 0 0 100 08:5 +9:00 0 0 0 100 09:19:00 0 0 0 100 09:39:00 0 0 0 100 09:59:00 0 0 0 1 +00 10:19:00 0 0 0 100 10:39:00 0 0 0 100 10:59:00 0 0 0 100 11:19:00 +0 0 0 100 11:39:00 0 0 0 100 11:59:00 0 0 0 100 12:19:00 0 0 0 100 12 +:39:00 0 0 0 100 12:59:00 0 0 0 100 13:19:00 0 0 0 100 13:39:00 0 0 0 + 100 13:59:00 0 0 0 100 14:19:00 0 0 0 100 14:39:00 0 0 0 100 Average + 0 0 0 100