Newsgroups: comp.parallel.mpi
From: joep@fwi.uva.nl (Joep Vesseur)
Subject: Re: getenv problems
Organization: FWI, University of Amsterdam
Date: 9 Jun 1995 12:54:58 +0200
Message-ID: <3r99a2$bj5@mail.fwi.uva.nl>

mdv@jedi (Marc Devos) writes:

>Hi Everybody,

>When we start a very simple program that gets an environment variable,
>only the node number zero actually gets the right value ( the others get
>NULL ). Is that a known problem ? is there any workaround ?

If the MPI implementation you are using starts remote processes
using rsh(1), the environment on the remote node probobly isn't
equal to the environment on the local node (node 0).

Maybe you should try to hand the current environment over to the
remote node by changing the "rsh" command from (e.g.)

  rsh <host> <command> <arg1> ... <argn>

into something like
 
  rsh <host> `/usr/bin/env | sed 's:=\(.*\):="\1":'` <command> <arg1> ...

Hope this helps,

Joep

