LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2008, 11:36 AM   #1
capn_hector
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Rep: Reputation: 0
auto select wifi network by signal rateing


ok i have seen this script and its similar to what i want to do except i want to select networks by signal strength and limited to a set of essid's where i work uses 5 different essids and i want to select based on strength. i have been trying to grep out the signal strength from iwlist and write the essid and strength to a table then use the table to select the highest signal however that has proved dificult as im not very good with grep and tables yet.

i have googled till my fingers have bled and cant seem to find any thing.

once i can select the network by signal strength i all ready have a script to connect on boot that can be modified very easily

EDIT: im trying to grab out the essids with the following
Quote:
ESSID=`iwlist ath0 scan | grep 'essid:' | cut -d: -f2 | awk '{print $1}'`
if i can get that working ill do the same with signal strength

Last edited by capn_hector; 01-07-2008 at 12:11 PM.
 
Old 01-08-2008, 02:17 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Where it says "grep 'essid:'", change that to the text that is immediately before the signal strength.

There are quite a few grep, sed and awk manuals out there (check out TLDP - The Linux Documentation Project).

Also, you need to tell us more: what is happening, what isn't happening, what should be happening, some sample output would be nice (of course, with some of the sensitive information blanked out).
 
Old 01-14-2008, 11:10 PM   #3
capn_hector
LQ Newbie
 
Registered: Nov 2006
Posts: 18

Original Poster
Rep: Reputation: 0
right now its in the infant stages of just getting the variables i drive a truck and only realy have time to work on it when i get home so it will be a little while before i get any thing useful that i can post.

so my plan is to grep out the essid and signal strength sort by strength then connect with the wifi settings for that network. not to hard just need the time to get every thing working. thanks for the tip on grep and the point to the ldp
 
Old 01-15-2008, 08:39 AM   #4
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Oh - you're very welcome!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu select and auto change fluxit Linux - Desktop 0 11-08-2007 05:04 PM
select/poll and Signal Safety nopcoder Programming 9 01-30-2006 07:05 PM
Select wifi configuration based on essid BlueNoteMKVI Linux - Wireless Networking 3 11-26-2005 07:38 AM
urpmi --auto-select dolphans1 Mandriva 9 11-26-2005 07:09 AM
auto select open in forms? @ngelot Programming 1 05-11-2005 05:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration