0

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?

oh.dae.su
  • 318
Flo
  • 1

1 Answers1

1

This sounds like, there is no such file at the specified path:

/onHostapdChange.sh

I would suggest you try to put the full path of the shell script inside the argument.

oh.dae.su
  • 318