Brock Rozen <[EMAIL PROTECTED]> writes:

> One solution I've come up with is to use something of the sort:
> 
> ssh remotehost /etc/init.d/daemon reload
>
> Assume I'm running as root and have made the changes to let it happen w/o
> a password. I'm going to get an error here that it can't find
> "start-stop-daemon". Alternatively, if I change the "daemon" script to
> point to /sbin/start-stop-daemon then it works fine. I tried this with
> /etc/init.d/bind

So you should use ssh capablity :

man ssh :
       Additionally,     ssh     reads    /etc/environment    and
       $HOME/.ssh/environment, and adds lines of the format  VARĀ­
       NAME=value  to  the  environment.   Some  systems may have

So, puting your wanting PATH in /root/.ssh/environement should do the
job.

              Jean Charles
-- 
MR: J'ai beaucoup entendu parler de fcol, mais je n'y suis jamais alle jeter
MR: un oeil....  c'est quoi l'adresse ?
CL: Tu viens d'y poster :)
-+- in Guide de linuxien pervers : "Termes abscons..." -+-

Reply via email to