/ Published in: Bash

Get connected wireless network name (SSID) from iwconfig
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/sh AP=$(iwconfig wlan1 | grep 'ESSID:' | awk '{print $4}' | sed 's/ESSID://g' | sed 's/"//g') echo $AP
Comments
