> #Begin: /usr/bin/kickdouble
> if who | grep ws | grep $1
I assume "ws" is the workstation's hostname.
You may want to be more precise, just in case you have users with names
based on other users names (like "john" and "johndoe").
Also, you can use grep with the -q switch.
who | egrep -q "^"$1"[[:blank:]].*[[:blank:]].* (ws.*)$"
(I'd just put in the same script and forget about the exit because the
above already gives a result 0 or 1.
Jeremy C. Reed
technical support & remote administration
http://www.pugetsoundtechnology.com/
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net