--- projects/cms/source/host/generic/statgrab.pl 2001/01/22 09:59:09 1.5 +++ projects/cms/source/host/generic/statgrab.pl 2001/01/22 10:03:30 1.6 @@ -3,7 +3,7 @@ #----------------------------------------------------------------- # Machine statistics grabber # $Author: pjm2 $ -# $Id: statgrab.pl,v 1.5 2001/01/22 09:59:09 pjm2 Exp $ +# $Id: statgrab.pl,v 1.6 2001/01/22 10:03:30 pjm2 Exp $ # # A Perl script to return various information about a host machine # by examining the output of some common Unix/Linux commands. @@ -21,21 +21,28 @@ $| = 1; # You'd be silly not to use this ;) use strict; +# Run the following components: - &print_ident(); &include_osver(); &include_users(); &include_top(); &include_disk(); +# End the program normally. exit(0); + + + + + # prints out an identifier for this version of statgrab.pl # the host should check this when reading data # means the host must be checked and updated to work with newer versions. sub print_ident() { - print 'version statgrab.pl $Revision: 1.5 $'; + print 'version statgrab.pl $Revision: 1.6 $'; print "\n"; }