|
From: Dave S. <D.T...@li...> - 2012-05-15 14:52:49
|
On 15 May 2012 15:25, Jérôme BELLEGARDE
<j.b...@al...> wrote:
> Now the file is like this :
> export PATH=/usr/local/sbin
Argh!
That's why you're having problems.
You only needed to change the references to
/usr/sbin/snmpd to read /usr/local/sbin/snmpd
(and similarly for snmptrapd).
You shouldn't have changed the PATH setting.
Now the script is *only* looking in /usr/local/sbin
and hence can't find any of the usual Linux commands.
Put this line back to the way it was before
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
and try again
Dave
|