I found the problem. I was using "dhclient eth0 -T 20" but the timeout parameter now is "-timeout <timeout>".<br><br> Thanks for your help!<br><br>cheers,<br>Esteban.<br clear="all"><br><div class="gmail_quote">

2010/8/11 Esteban Bordon <span dir="ltr"><<a href="mailto:ebordon@plan.ceibal.edu.uy">ebordon@plan.ceibal.edu.uy</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div class="im">2010/8/10 Bernie Innocenti <span dir="ltr"><<a href="mailto:bernie@codewiz.org" target="_blank">bernie@codewiz.org</a>></span><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


El Tue, 10-08-2010 a las 09:17 -0300, Esteban Bordon escribió:<div class="im"><br>
<div>> The script try to connect to the Access Point that have the better<br>
> signal using iwlist, iwconfig and dhclient. If dhclient return 0 it<br>
> executes ip route to obtain the server IP and it download a few files.<br>
<br>
</div>If you set all the access points in the school to the same ESSID, then<br>
clients will automatically connect to the AP with best signal and even<br>
switch to a different one if you move around (however, since background<br>
scanning is slow, you might loose association if you move around too<br>
quickly).<br>
<br>
Regarding the server ip, it would be cool if you could use the DNS. dhcp<br>
could configure one nameserver on the client and an automatic search<br>
domain. For example, in the school where I'm sitting now I get this in<br>
my /etc/resolv.conf:<br>
<br>
  domain <a href="http://escuela485.caacupe.paraguayeduca.org" target="_blank">escuela485.caacupe.paraguayeduca.org</a><br>
  search <a href="http://escuela485.caacupe.paraguayeduca.org" target="_blank">escuela485.caacupe.paraguayeduca.org</a><br>
  nameserver 172.18.0.1<br>
<br>
The DNS managed by the schoolserver has a zone called<br>
"<a href="http://escuela485.caacupe.paraguayeduca.org" target="_blank">escuela485.caacupe.paraguayeduca.org</a>", in which there's a host<br>
"schoolserver". With all this infrastructure in place, all you need to<br>
do to download a file is:<br>
<br>
  wget <a href="http://schoolserver/file" target="_blank">http://schoolserver/file</a><br>
<div><br></div></div></blockquote><div> </div></div>I'm trying something like this. The problem is that dhclient isn't working correctly. Have you got any form to debug that command?<br>
</blockquote></div><br>