LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2008, 10:16 AM   #1
pangcake
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Smile IPaddress of wireless


If i wanna write a script to get IPaddress of wireless interface, how can i get it? because my problem is that each machine has different name of wireless card such as ath0, eth1, wlan0.

Thanks
 
Old 07-19-2008, 12:36 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Maybe look at the output of
cat /proc/net/wireless ?
 
Old 07-19-2008, 03:49 PM   #3
pangcake
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
thanks

Thanks too much for ur answer.
I know how to write the script now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gentoo - ipaddress aeby Linux - Networking 1 06-18-2007 08:28 AM
IPaddress packet xeon123 Linux - Networking 1 03-25-2007 07:01 PM
getting the location through the ipaddress deepclutch Linux - Networking 2 02-11-2007 01:10 AM
ipaddress ....in my program... hegdeshashi Programming 5 07-06-2006 12:11 PM
ipaddress and hostname groverrajiv Linux - Networking 1 04-24-2004 08:29 AM


All times are GMT -5. The time now is 11:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration