aixmike has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance_____________________________________________ #!/usr/bin/perl # # open (SAR,">/usr/local/htdocs/SAR/sar.out.html"); while (<>) { print SAR $_,"\n<br>" ; } _____________________________________________ The file is in this format : ------------------------------------- AIX beips88 2 5 000C79AF4C00 04/27/05 System Configuration: lcpu=6 11:30:42 %usr %sys %wio %idle 13:19:00 0 0 0 100 14:19:00 0 0 0 100 15:19:01 0 0 0 100 16:19:00 0 0 0 100 17:19:00 0 0 0 100 Average 0 0 0 100 System Configuration: lcpu=6 11:30:42 bread/s lread/s %rcache bwrit/s lwrit/s %wcache pread/s pwrit +/s 13:19:00 0 0 0 0 0 0 0 + 0 14:19:00 0 0 0 0 0 0 0 + 0 15:19:01 0 0 0 0 0 0 0 + 0 16:19:00 0 0 0 0 0 0 0 + 0 17:19:00 0 0 0 0 0 0 0 + 0 Average 0 0 0 0 0 0 0 + 0 System Configuration: lcpu=6 11:30:42 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s 13:19:00 73 8 3 0.22 0.26 8646 643 14:19:00 17 3 1 0.02 0.01 1552 31 15:19:01 29 4 2 0.05 0.05 6839 194 16:19:00 27 5 2 0.03 0.03 2390 157 17:19:00 11 2 0 0.00 0.00 1124 3 Average 25 4 1 0.04 0.04 3412 138 System Configuration: lcpu=6 11:30:42 cswch/s 13:19:00 59 14:19:00 54 15:19:01 58 16:19:00 59 17:19:00 54 Average 57 System Configuration: lcpu=6 11:30:42 rawch/s canch/s outch/s rcvin/s xmtin/s mdmin/s 13:19:00 1 0 6 0 0 0 14:19:00 0 0 4 0 0 0 15:19:01 1 0 12 0 0 0 16:19:00 1 0 20 0 0 0 17:19:00 0 0 0 0 0 0 Average 0 0 9 0 0 0 System Configuration: lcpu=6 11:30:42 iget/s lookuppn/s dirblk/s 13:19:00 0 7 1 14:19:00 0 1 0 15:19:01 0 2 0 16:19:00 0 1 0 17:19:00 0 1 0 Average 0 2 0 System Configuration: lcpu=6 11:30:42 runq-sz %runocc swpq-sz %swpocc 13:19:00 1.3 1 1.0 0 14:19:00 1.0 0 1.0 0 15:19:01 1.0 0 1.1 0 16:19:00 1.1 0 1.0 0 17:19:00 1.0 0 Average 1.2 0 1.0 0 System Configuration: 11:30:42 proc-sz inod-sz file-sz thrd-sz 13:19:00 66/262144 350/3018 424/511 200/524288 14:19:00 72/262144 355/3413 438/511 206/524288 15:19:01 72/262144 357/3479 441/511 206/524288 16:19:00 68/262144 350/3523 425/511 202/524288 17:19:00 68/262144 350/3526 425/511 202/524288 System Configuration: lcpu=6 11:30:42 msg/s sema/s 13:19:00 0.05 0.00 14:19:00 0.01 0.00 15:19:01 0.01 0.00 16:19:00 0.01 0.00 17:19:00 0.01 0.00 Average 0.01 0.00 ----------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Display Results
by jpeg (Chaplain) on Apr 28, 2005 at 17:19 UTC | |
|
Re: Display Results
by tcf03 (Deacon) on Apr 28, 2005 at 17:52 UTC | |
by aixmike (Novice) on Apr 28, 2005 at 20:05 UTC | |
|
Re: Display Results
by Transient (Hermit) on Apr 28, 2005 at 16:43 UTC | |
by aixmike (Novice) on Apr 28, 2005 at 20:01 UTC | |
|
Re: Display Results
by Transient (Hermit) on Apr 29, 2005 at 12:20 UTC |