ethanderson
Posts: 1
Joined: Tue Aug 14, 2018 2:25 pm

Shell command on client connect to softAP

Tue Aug 14, 2018 2:31 pm

I'm currently running a client and a server off of my RPIZ w as per this tutorial:
https://blog.thewalr.us/2017/09/26/rasp ... mode-wifi/

Everything is working well but I was curious if there was a way to run a shell command to say, run a python script on client connection to my softAP.

epoch1970
Posts: 2072
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Shell command on client connect to softAP

Fri Aug 17, 2018 2:01 pm

You should be able to use “hostapd_cli -a script.sh” for this. Example.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Return to “Advanced users”