LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-08-14 17:09:10


On Thu, 14 Aug 2003, todd keeler wrote:

> [snipped]
> You're right, it did work. I guess the system command doesn't search
> paths specified in the bash_profile on the nodes , setting the direct
> path in the system() command did the job. Thanks alot

You might want to double check which dot files are executed when you
lamboot. Each shell has a different way of doing things (see the bash man
page, for example), and it may depend on how your shell is listed in
/etc/passwd.

This matters because the lamd will inherit the environment that is setup
by .profile. MPI programs are launched by the lamd, and therefore inherit
this environment. From the system(3) man page: "system() executes a
command specified in string by calling /bin/sh -c string".

Also be sure to see the LAM FAQ under "booting LAM".

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/