Use remote machine environmental variables
Damien Miller
djm at mindrot.org
Wed Oct 11 07:58:45 EST 2006
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.
More information about the openssh-unix-dev
mailing list