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


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