Xwilling script sample for Linux
Last Update: 06/07/2007


 
#!/bin/sh
#
# $XFree86$

# The output of this script is displayed in the chooser window.
# (instead of "Willing to manage")

load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ 	]*//'`"
s=""; [ "$nrusers" != 1 ] && s=s

echo "${nrusers} user${s}, load: ${load}"

 


 


Google

Last update of this page: Thursday, June 07, 2007 09:34:15 AM
Please respect our privacy and rights.  Do not copy without Permission.