Files
cacti/scripts/users.pl
T
Ian Berry eb59dd520f Initial revision
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@2 860744bd-22fc-0310-8c96-e9fe5004b5ca
2002-05-18 20:29:57 +00:00

13 lines
189 B
Perl

#!/usr/bin/perl
if ($ARGV[0] eq "") {
$inbound = `w | wc -l`;
$inbound =~ s/ +//;
$inbound = $inbound - 2;
}else{
$inbound = `w | grep -c $ARGV[0]`;
}
chomp $inbound;
print $inbound;