For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > January 2007 > remsh









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author remsh
shulamitm

2007-01-16, 8:07 am

Hi,

I need to run 'remsh' from local host to remote host, while in the
command I need to use an environment variable value of remote host. The
problem is that I get the value of the local environment variable.

In the following example, I get the value of VAR in host1, while I need
its value in host2:
from host1: remsh host2 -l host2user "echo $VAR"

Could you please help?
thanks in advance.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com