So I figured out it was the echo -e in my script making everything not work.

The get_hosts script has now been modified to just return the best 
server. alkisg in #ltsp and gadi from #ltsp helped me figure all of that 
out.

Here is the current get_hosts script
#!/bin/sh

max_rank=-1
max_server=''
for server in $MY_SERVER_LIST; do
    rank=$(nc $server 9571 | sed -n 's/rating://p')
    if [ "$rank" -gt "$max_rank" ]; then
        max_rank="$rank"
        max_server="$server"
    fi
done
echo "$max_server"



grant wrote:
> I am currently using ldminfod and going off of the rating it provides to 
> give the best server.
>
> Here is my output for each server I am using for testing.
>
> 10.0.0.36
>
> language:en_US.UTF-8                             
> language:en_AU.UTF-8                             
> language:en_BW.UTF-8                             
> language:en_CA.UTF-8                             
> language:en_DK.UTF-8                             
> language:en_GB.UTF-8                             
> language:en_HK.UTF-8                             
> language:en_IE.UTF-8                             
> language:en_NZ.UTF-8                             
> language:en_PH.UTF-8                             
> language:en_SG.UTF-8                             
> language:en_ZA.UTF-8                             
> language:en_ZW.UTF-8                             
> session:/usr/bin/startkde                        
> session-with-name:KDE:/usr/bin/startkde          
> xsession:/etc/X11/Xsession      
> rating:95
>
> 10.0.0.46
>                             
> language:en_US.UTF-8
> language:en_AU.UTF-8
> language:en_BW.UTF-8
> language:en_CA.UTF-8
> language:en_DK.UTF-8
> language:en_GB.UTF-8
> language:en_HK.UTF-8
> language:en_IE.UTF-8
> language:en_NZ.UTF-8
> language:en_PH.UTF-8
> language:en_SG.UTF-8
> language:en_ZA.UTF-8
> language:en_ZW.UTF-8
> session:/usr/bin/startkde
> session-with-name:KDE:/usr/bin/startkde
> xsession:/etc/X11/Xsession
> rating:99
>
> this still leaves me with no session choices other than default and the 
> failsafexterm
>
> Thanks.
>
> Grant
>
> CyberOrg wrote:
>   
>> On Wed, Feb 3, 2010 at 9:45 PM, grant <gr...@ajrs.com> wrote:
>>   
>>     
>>> I did just notice that when I have both of the servers defined in the
>>> MY_SERVER_LIST and I go to select session on the ldm I am only given the
>>> default and failsafe xterm. Now if I remove the server that the client
>>> is no in the dhcpd.conf file and go to the select session button I get
>>> the option for kde and I can login of course.  I am not sure what this
>>> means but I want to think it can be part of my problem.
>>>
>>>     
>>>       
>> You need ldminfod installed and enabled in all nodes to see available 
>> sessions.
>>
>> Cheers
>>
>> -J
>>
>> ------------------------------------------------------------------------------
>> The Planet: dedicated and managed hosting, cloud storage, colocation
>> Stay online with enterprise data centers and the best network in the business
>> Choose flexible plans and management services without long-term contracts
>> Personal 24x7 support from experience hosting pros just a phone call away.
>> http://p.sf.net/sfu/theplanet-com
>> _____________________________________________________________________
>> 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
>>   
>>     
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _____________________________________________________________________
> 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
>
>   

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_____________________________________________________________________
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

Reply via email to