Originally Posted by timl
First of all, get out of root and login as a normal user
Maybe I am missing what the problem is here. Can't you just say
Actually I'm including this like below in my perl script:
(ethtool eth0 | grep Duplex)
However, when I execute my script I'm seeing below:
bash: line 10: ethtool: command not found
So to resolve this I have to provide the path as well like (/sbin/ethtool eth0 | grep Duplex). When I do this it's working. Only issue I foresee here is some of the linux systems have ethtool within /usr/sbin/ethtool. This is the reason I'm trying to find the path using which command and interpret the output.