or you can do /usr/bin/who | wc -l
:) > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of guyverix > Sent: Tuesday, 16 October, 2007 12:48 > To: [email protected] > Subject: [zenoss-users] Re: trying to understand > > Here is an option. In your snmpd.conf file put in an exec > command for this script. > > This will return the number of users logged in. > > > > #! /bin/bash > /usr/bin/who | wc | sed -e 's/\s\s*/ /g' | cut -d' ' -f2 > > ------------------------ > Christopher Hubbard > > > > > -------------------- m2f -------------------- > > Read this topic online here: > http://community.zenoss.com/forums/viewtopic.php?p=11807#11807 > > -------------------- m2f -------------------- > > > > _______________________________________________ > zenoss-users mailing list > [email protected] > http://lists.zenoss.org/mailman/listinfo/zenoss-users > _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
