Newsgroups: comp.parallel.pvm
From: fox@nrlssc.navy.mil (Dan Fox)
Subject: Re: PVM_ROOT question
Organization: Naval Research Lab
Date: Fri, 18 Nov 1994 18:42:23 GMT
Message-ID: <CzH7yo.Apr@usenews.nrlssc.navy.mil>

Jeffrey V. Butera (jvbutera@meowmeow.math.ncsu.edu) wrote:

: rsh machineB "echo $PVM_ROOT"

You've run into the difference between various kinds of QUOTE
marks in unix...  When you type the command above, the $PVM_ROOT
variable actually gets expanded in your current shell..  I.e.,
it's exactly as if you have typed:  rsh machineB "echo /home/butera/pvm"
(or whatever $HOME expands to on machineA).  

If you want a variable to get expanded on the REMOTE host,
using how it's defined in .cshrc on the remote side, you'll need
to use single quotes:   rsh machineB 'echo $PVM_ROOT'
Now you'll see what that variable _really_ is on the remote machine.

--
 +-----------------------------------------+
 | Daniel N Fox       fox@nrlssc.navy.mil  |
 | Naval Research Laboratory, Code 7323    |
 | Stennis Space Center, MS 39529-5004     |
 +-----------------------------------------+

