Sunday, June 20, 2010

[nslu2-linux] rsync and ssh command

 

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