Newsgroups: comp.parallel.pvm
From: peter@newsserver.trl.oz.au (Peter K. Campbell)
Subject: Re: add not working
Organization: Telecom Research Labs, Melbourne Vic, Australia
Date: 22 Aug 1994 13:31:43 +1000
Message-ID: <33966v$epu@tardis.trl.OZ.AU>

bwh@inf.rl.ac.uk (Brian Henderson) writes:

>In article 1n2@gort.trl.OZ.AU, peter@newsserver.trl.oz.au (Peter K. Campbell) writes:
>>Howdy, all.  I'm trying to get pvm 3.3.3 working on a network of Sun 4
>>machines (Sparcstations 1, 1+, IPC, IPX & 2) running SunOs 4.1.1 & 4.1.2.
>>I've compiled the package and examples with no problem, but I can't
>>get the "add" command to work properly when I run pvm.
>>
>>
>>So, it looks like the problem is the PVM_ROOT variable.  But, like I said,
>>I've got it defined in both my .cshrc & .login file, and the rsh commmands
>>work without problems.
>>
>>Can anyone tell me what I'm doing wrong?
>>
>>Thanks in advance.
>>
>>Peter K. Campbell
>>p.campbell@trl.oz.au

>This was commented on in previous article as being a problem with PVM locating the
>pvmd in the remote shell. Look in ~/pvm3/doc/release-notes for documentation on this
>problem:-

>  **** release-notes *********
>	
>  Certain shells (ksh users take note) don't run a startup script in
>  a non-login session, so you won't be able to do the above.  To find
>  out if your setup works, try:

>      rsh  Machine  'echo $PVM_ROOT'
[Various helpful things from Brian deleted]

Thank you, Brian, and also to Norman Wilson, who mailed me.  As Norman
pointed out directly (and Brian indirectly), the trouble with the commands
I was using to test PVM_ROOT was that they were lacking quotes, i.e. I had
	rsh medici $PVM_ROOT/lib/pvmd
instead of
	rsh medici '$PVM_ROOT/lib/pvmd'

The difference is that the first uses the value of PVM_ROOT from the calling
shell (which I had set up), whereas the second actually sources the .cshrc
file.

I found the latter command failed on my system due to a command in my .cshrc
file which was terminating it early when called by rsh, before I'd set up
PVM_ROOT, a problem I've now fixed & everything works hunky-dory.

Now, the reason I got confused is because the PVM manual was missing the
quotes too (section 4.2 Troubleshooting Startup, page 12), so I'm just
about to mail the authors so they can update it.

Thanks.

Peter K. Campbell
p.campbell@trl.oz.au

