Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- get_config() {
- iwconfig 2>&1 | sed -n -e 's/^.*Access Point: //p'
- } #(bnbfreak, 2013)
- get_rssi() {
- iwconfig | awk -F'[ =]+' '/Signal level/ {print $7}'
- } #(John, 2016)
- while true; do
- date "+%T.%1N" | tee -a scan3.txt
- config=$(get_config)
- rssi=$(get_rssi)
- echo "$config" | tee -a scan3.txt
- echo "$rssi" | tee -a scan3.txt
- echo "" | tee -a scan3.txt
- sleep 1
- done
Add Comment
Please, Sign In to add comment