Wednesday, June 23, 2010

Re: [nslu2-linux] rsync and ssh command

 


Am 20.06.2010 um 15:41 schrieb ced23456:

> WHat is the difference between : Me executing an ssh then env command AND ssh executing the command directly. WHy is the PATH different ?

SSH'ing into the server in interactive mode will open a login session using your standard shell and profile, using "ssh server command" does not. This is just the way it works.

The easiest solution is to state the full path to the command or to issue several commands (be sure to escape the semicolons so your local shell does not interpret them) that first set the path and then call the command.

__._,_.___
Recent Activity:
.

__,_._,___

No comments:

Post a Comment