I am trying to execute a command on hostapd when there is a new connection established.
I used this example:
hostapd: execute a command when there is new connection established
But when I start the script, on device connection, I receive an error:
pi@raspberrypi:~ $ sudo hostapd_cli -a '/onHostapdChange.sh'
Selected interface 'wlan0'
execv: No such file or directory
Could you help me please?