|
#!/usr/bin/perl -w
use vars qw($query);
print $query->header();
my ($input_field,$uptime,$tally);
sub create_data_display_table {
sub close_data_display_table {
sub display_error_log
open(STDIN, "tail -50 /usr/local/apache/logs/error_log>&1 |") || die "Problem redirecting STDIN."; my $count = 1;
while (defined ($input_field = STDIN>))
$count = $count+1;
print "tr>td>/td>td>/td>/tr>";
sub display_server_info
print "tr>td ALIGN=CENTER bgcolor=#dcbeff>FONT face=Arial size=2>STRONG>Uptime:\/STRONG>/font>/td>td>FONT face=Arial size=2> ";
print "tr>td ALIGN=CENTER bgcolor=#dcbeff>FONT face=Arial size=2>STRONG>Current Users:\/STRONG>/font>/td>td>FONT face=Arial size=2>";
print "tr>td ALIGN=CENTER bgcolor=#dcbeff>FONT face=Arial size=2>STRONG>Number of current users:\/STRONG>/font>/td>td>FONT face=Arial size=2> ";
} # end sub display_server_info
&create_data_display_table;
|