View Single Post
Posts: 2,290 | Thanked: 4,133 times | Joined on Apr 2010 @ UK
#1342
I currently have this on my desktop.
Code:
/sbin/ifconfig wlan0 | awk -F "[: ]" ' /Bc/ {print $13}' ; echo "iwconfig wlan0" | sudo gainroot | grep ESSID | sed "s/.*ESSID:\"//;s/\".*//"; awk -F "[. ]" '/0/ {print $6" %"}' /proc/net/wireless ; echo "/sbin/iwconfig wlan0" | sudo gainroot | grep Point | sed "s/.*Point: //;s/ //g" ;
This outputs
  • Internal IP
  • SSID
  • Signal Quality
  • MAC

As for channel, "iwconfig wlan0" doesn't show a channel so I am not sure.
Will have a go later.

Possibly try "iwlist scan" | grep channel
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.