Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > iwconfig fails with space in essid

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-19-2008   #1 (permalink)
Just Joined!
 
Join Date: Aug 2008
Location: GMT -8 ; northern hemisphere
Posts: 3
iwconfig fails with space in essid

Just wondering if others have run into this issue ...

I'm running CentOS 4.6 on a ThinkPad T42 w/ Atheros wireless device.
Madwifi driver works very well, but when I attempt to configure a connection for an AP that has a space in the essid, iwconfig only uses the first word -- even though both are surrounded by double quotes -- and therefore association fails.

This occurs always, if I'm attempting the configuration on the command line or via a script (tried a variety of methods to escape/quote the space, to no avail).

Kernel is 2.6.9-67.0.[15|20|22] & madwifi driver v 0.9.3.3/0.9.4 ... any combination ... makes no difference. Wireless-tools are from installation of wireless-tools-28-0.pre16.3.3.EL4.rpm.

Any thoughts regarding possible resolution would be most welcome.

Thanks!
NoWizard is offline  


Reply With Quote
Old 08-19-2008   #2 (permalink)
Trusted Penguin
 
waterhead's Avatar
 
Join Date: Jul 2004
Location: Franklin, Wisconsin
Posts: 3,957
When entering something like a file name with a space, into a terminal, you add a backslash before the space. This may be all you need to do.

For example, a title like this:
How I Met Your Mother

Would look like this:
How\ I\ Met\ Your\ Mother
__________________
Paul

Please do not PM me with requests for help. I will not reply.
waterhead is offline   Reply With Quote
Old 08-19-2008   #3 (permalink)
Just Joined!
 
Join Date: Aug 2008
Location: GMT -8 ; northern hemisphere
Posts: 3
Paul,

Thanks -- though the single-backslash-escape was just one of the "... variety of methods to escape/quote the space ..." to which I referred, and results in the same response ... including an error message that seems to indicate the second parameter to the essid argument is being parsed (due to the whitespace) as another (unrecognized) argument ...

Examples:
[root@mysystem ~]# iwconfig ath0 essid "firstword secondword"
iwconfig: unknown command "secondword"
[root@mysystem ~]# iwconfig ath0 essid "firstword\ secondword"
iwconfig: unknown command "secondword"
[root@mysystem ~]# iwconfig ath0 essid 'firstword\ secondword'
iwconfig: unknown command "secondword"
[root@mysystem ~]# iwconfig ath0 essid firstword\ secondword
iwconfig: unknown command "secondword"
[root@mysystem ~]# iwconfig ath0 essid "firstword' 'secondword"
iwconfig: unknown command "'secondword"

As the shell seems to be reliably parsing the command line where
$2 = firstword secondword
I can only assume it's an issue with the iwconfig+extensions+driver chain ... don't know enough about the internals to hazard a guess where.

--NoWiz
NoWizard is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:31 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2