#!/usr/bin/perl use CGI; $q = new CGI; print $q->header, $q->start_html(-title=>'Current Client Configuration', -BGCOLOR=>'#ffffde'), "
\"Client

The following is the current configuration of the client machines (ie, what OS they're currently booted into).

"; foreach (split /\n/, `/usr/local/bin/clientconfig`) { my ($num, $os, $machine) = split; if ($os eq 'WindowsNT') { print "\n"; } elsif ($os eq 'Linux') { print "\n"; } else { print "\n"; } } print "
Machine Number Operating System
$num \"\"$os
$num \"\"$os
$num $os
\n".$q->end_html;