![]() |
|
|
|||
|
iwconfig
Hi,
I wanna write a shell script that scans periodically (called from crontab) all wifi networks available with iwlist and then try to connect to the ones that are not secured. I think this would be a cool idea especially if you're wandering around in a city and you would like to get connected to any connection that takes you. I got as far as getting all the SSIDs in a list with: iwlist scan | awk -F\" '/ESSID/ {print $2}' but i then got stuck in just getting connected from the console using iwconfig. I simply tried to connect with iwconfig /dev/eth1 essid "tuxnet" (which is my own unsecured SSID) but i didn't get an IP address but when connecting using the NetworkManager it works flawlessly. What am I missing? Thanks, Ron -- weeks of coding safes hours of planning |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|