Re: get_hosts basic cluster script

Helmut Lichtenberg <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
Jigish Gohil schrieb am 10. Feb 2009 um 13:04:41 CET:
> Attached is the get_hosts script that was modified and added to
> openSUSE LTSP images. There seem to be a bug in ldm screen script as
> it calls this script even if MY_SERVER_LIST is not set.

You better put $MY_SERVER_LIST on line 5 into double quotes:

    if [ -z "$MY_SERVER_LIST" ]; then

otherwise you get this for a blank-separated list:

    root(lts-v1,~)# MY_SERVER_LIST="ots-v2 ots-v3" ./get_hosts
       ./get_hosts: line 5: [: ots-v2: binary operator expected
       ots-v3 ots-v2

Helmut

-- 
-------------------------------------------------------------------------
Helmut Lichtenberg  <[email protected]>  Tel.: 05034/871-128
Institut für Nutztiergenetik (FLI)         31535 Neustadt         Germany
-------------------------------------------------------------------------

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.