What's new

SSH command issue

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

dsds

New Around Here
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:

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:
Provide the complete path to the wl command.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top