Hi,
I've already modified this file.
Here is the PATH in /etc/profile
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin"
The command:
ssh myslug 'echo $PATH' returns:
/usr/bin:/bin:/usr/sbin:/sbin
So where does the slug finds this PATH ????
Thanks
--- In nslu2-linux@yahoogroups.com, "Steve" <steve@...> wrote:
>
>
>
>
>
>
> In the /etc directory there is a file called 'profile'. Near the top is an entry for PATH. Add the additional path to that string. A ':' separates the items but not at the end. You will probably have to login again.
>
> PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin"
>
> Steve
>
> --- In nslu2-linux@yahoogroups.com, "ced23456" <duchesne.cedric@> wrote:
> >
> > Hi,
> >
> > I'm trying to connect with rsync on a remote Slug. My slug is running SlugOS.
> >
> > When i execute the rsync command, it says sh: rsync not found.
> >
> > This relates to a problem in my PATH variable. The command ssh myslug 'echo $PATH' returns '/usr/bin:/bin:/usr/sbin:/sbin'.
> >
> > I'm clearly missing the /opt/bin but i have no clue on how to add it.
> >
> > WHen i connect myself on the slug the PATH variable is correctly set:
> >
> > PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin
> >
> >
> > WHat is the difference between : Me executing an ssh then env command AND ssh executing the command directly. WHy is the PATH different ?
> >
> > Thanks
> >
>
Sunday, June 20, 2010
[nslu2-linux] Re: rsync and ssh command
__._,_.___
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment