I'm trying to run a command on my RT-AC66U to check whether certain MAC addresses are currently active on the router. I'm doing this to try to enable presence detection with a home automation setup.
If I ssh into the router, I'm able to run "wl -i eth1 assoclist" without issue and get the MAC addresses currently associated with the router.
However, I want to script this to get the output back on the local computer running the script. This is where I'm having trouble. If I run the following:
I get:
Can someone help me figure out why this won't work? If I run that same ssh command, but with "ls", it works fine.
Thanks.
If I ssh into the router, I'm able to run "wl -i eth1 assoclist" without issue and get the MAC addresses currently associated with the router.
However, I want to script this to get the output back on the local computer running the script. This is where I'm having trouble. If I run the following:
Code:
ssh admin@10.0.0.1 "wl -i eth1 assoclist"
I get:
Code:
sh: wl: not found
Can someone help me figure out why this won't work? If I run that same ssh command, but with "ls", it works fine.
Thanks.
Last edited: