This is a discussion on Re: Use remote machine environmental variables within the OpenSSH Development forums, part of the Networking and Network Related category; Thank you for the follow up, this works perfectly. Clark ----- Original Message ---- From: William Ahern <william@25thandClement.com> ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Thank you for the follow up, this works perfectly.
Clark ----- Original Message ---- From: William Ahern <william@25thandClement.com> To: Clark Menard <menard_1@yahoo.com> Cc: openssh-unix-dev@mindrot.org Sent: Tuesday, October 10, 2006 5:57:35 PM Subject: Re: Use remote machine environmental variables On Tue, Oct 10, 2006 at 11:09:43AM -0700, 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 The issue is that your command is being variable interpolated by your local shell before executing ssh. You want to pass a literal '$WWW_HOME' argument to ssh (so it can pass it over the ssh channel), so you need to escape it from the local shell. - Bill _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@mindrot.org http://lists.mindrot.org/mailman/lis...enssh-unix-dev |
![]() |
| Thread Tools | |
| Display Modes | |
|
|