This is my script, which is /home/alador/wifitoggle:
#!/bin/bash
PATH=/home/alador:/usr/bin
nmcli nm wifi off
nmcli nm wifi on
This is my crontab entry:
PATH=/home/alador:/usr/bin
12 17 * * * /home/alador/wifitoggle
This is the message in /var/log/syslog:
May 1 17:12:01 WINTERFELL CRON[23348]: (alador) CMD (/home/alador/wifitoggle)
May 1 17:12:25 WINTERFELL wpa_supplicant[1320]: wlan0: CTRL-EVENT-SCAN-STARTED
May 1 17:12:29 WINTERFELL wpa_supplicant[1320]: nl80211: send_and_recv->nl_recvmsgs failed: -33