Re: Use remote machine environmental variables

This is a discussion on Re: Use remote machine environmental variables within the OpenSSH Development forums, part of the Networking and Network Related category; On Tue, 10 Oct 2006, Clark Menard wrote: > I am having an issue passing a command through ssh which ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-10-2006
Damien Miller
 
Posts: n/a
Default Re: Use remote machine environmental variables

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0