--- projects/cms/source/host/generic/statgrab.pl 2001/01/28 19:53:39 1.15 +++ projects/cms/source/host/generic/statgrab.pl 2001/01/28 19:57:40 1.16 @@ -3,7 +3,7 @@ #----------------------------------------------------------------- # Machine statistics grabber # $Author: pjm2 $ -# $Id: statgrab.pl,v 1.15 2001/01/28 19:53:39 pjm2 Exp $ +# $Id: statgrab.pl,v 1.16 2001/01/28 19:57:40 pjm2 Exp $ # # A Perl script to return various information about a host machine # by examining the output of some common Unix/Linux commands. @@ -48,7 +48,7 @@ exit(0); # 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.15 $'; + print 'version statgrab.pl $Revision: 1.16 $'; print "\n"; } @@ -107,8 +107,8 @@ sub include_users() { # Find out all users on this machine. my($users) = `$usersbin`; - chop($users); - $users = "" unless defined $users; + $users = "\n" unless defined $users; + chop $users; my($users_count) = 0; $users_count++ while $users =~ /\w+/g; my($users_list) = $users;