> There is still some way to leave behind before I have ATX machines on
> all places. But then I'd like to switch off clients automatically.
> However, it might be necessary to figure out where the terminal is still
> in use - is there a way to do this in a script?
You can grep for the hostname in the output of "who" on the server, ie:
host=ws003
if who | awk '{ print $2 }' | grep ${host}:0 > /dev/null; then
# Client is running
else
# Client is not running
fi
// Dag Sverre
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
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