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?

1
  • 2
    Does /onHostapdChange.sh actually exist? – Burgi Dec 20 '19 at 14:06
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.