linux - How to source remote scripts and assign variables remotely in rsh? -


There is a problem that has been bothering me lately.

I am trying to use the following Rsh or remsh (in HPUX):

  #! / Bin / sh rsh myDNS "DIRECTORY = / tmp / foo1 / foo2 $ DIRECTORY echo"   

Even when I try to run the above script, I still get empty output for $ DIRECTORY get. As a result, when this problem applies to actual scripts, on which I am working, bash claims that he can not find the specified script which I was trying to source.

You are using ssh better than rsh or remsh RSH and rims are very insecure - in Claretext Transmit data and IP addresses are based on authentication.

If you use double quotes like this, then before $ RSAR / REMS starts, the $ directory expands on the starting host.

If you use a single quote instead (approfosh), the $ directory should be expanded on the remote host.

Comments