Skriptimiskeeled aine aruanded 2010 sügis: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Rkalamee (talk | contribs)
Rkalamee (talk | contribs)
Line 11: Line 11:
==Reget Kalamees DK21==
==Reget Kalamees DK21==
[[Skript otsib vabade Wifi AP-de hulgast kõige kiirema ühenduse ja haagib end selle külge]]
[[Skript otsib vabade Wifi AP-de hulgast kõige kiirema ühenduse ja haagib end selle külge]]
<source lang="bash">
#pseudokood
ifconfig wlan0 up scan
ifconfig wlan0 list scan
for i=0 to vabad_alad
    ifconfig wlan0 ssid next
    dhclient
    time
    wget 100k
    time
    jäta time meelde
end for
ifconfig wlan0 ssid kiireim
dhclient wlan0
</source>


==Kaspar Prei==
==Kaspar Prei==

Revision as of 14:33, 17 October 2010