LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   executing a loaded module returns "command not found" error (https://www.linuxquestions.org/questions/linux-software-2/executing-a-loaded-module-returns-command-not-found-error-442830/)

neelay1 05-08-2006 12:18 PM

executing a loaded module returns "command not found" error
 
Hi all,
I'm trying to load ebtables module in Linux 2.6.9-34 kernel. I can load the module, when I grep lsmod for ebtables, I see that it has been loaded, but when I execute the ebtables command, I get a "command not found error". Is there some PATH variable that I need to append? If so, do I need to append it with the path to the ebtables.ko file?
Given below is the series of commands leading to the error-
[root:/lib/modules/2.6.9-34.ELsmp/kernel/net/bridge/netfilter] modprobe ebtables
[root:/lib/modules/2.6.9-34.ELsmp/kernel/net/bridge/netfilter] lsmod | grep ebtables
ebtables 24385 0
[root:/lib/modules/2.6.9-34.ELsmp/kernel/net/bridge/netfilter] ebtables
-bash: ebtables: command not found

Any help will be highly appreciated.

Thanks,
Neelay.

dcdbutler 05-08-2006 02:25 PM

try as root

# /sbin/ebtables

You can find the path to the binary by

$ whereis -b ebtables


All times are GMT -5. The time now is 09:15 AM.