On Tue, 10 Oct 2006, Clark Menard wrote:

> I am having an issue passing a command through ssh which uses an
> environment variable. I would like the environment variable to be read
> from the remote host, but it is being read from the local host.
>
> For instance:
>
> ssh rhost ls -lm $WWW_HOME


try:

ssh rhost "ls -lm $WWW_HOME"

otherwise your local shell will digest the environment variable
in your command line without passing it to the other end.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev