Sunday, June 20, 2010

[nslu2-linux] Re: rsync and ssh command

 



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
>

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.


Get great advice about dogs and cats. Visit the Dog & Cat Answers Center.


Get real-time World Cup coverage on the Yahoo! Toolbar. Download now to win a signed team jersey!

.

__,_._,___

No comments:

Post a Comment