So basicly i need to scan my access point every 10 minutes. This job is done by using this command
ssid=iw wlan0 scan | grep -E 'MY SSID NAME'
The output like this
SSID: MY SSID NAME
But when i add some if-else using the output command above, it fails
if [[ $ssid == "SSID: MY SSID NAME" ]]
then
echo "SSID Detected"
else
echo "SSID NOT Detected"
fi
it will return false statement ("SSID NOT Detected"). The fact is, my SSID available and broadcasting.
Need help.
And Thank you :)