ssh and PATH trouble
Hi everybody!
I have some troble with ssh. I want to restart (or reload) services in
/etc/init.d from a perl script. But what happens is:
root@nase[/root]# ssh -x vmdebian /etc/init.d/nfs-server reload
Reloading NFS servers configuration files.
/etc/init.d/nfs-server: start-stop-daemon: command not found
So i did:
root@nase[/root]# ssh -x vmdebian echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
wich seems ok for me.
So if anyone has an idea what i can do to make it work...
Thanks,
Ramin
Reply to: