Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] EXTERNAL: Re: Problem with shell when launching jobs with OpenMPI 1.6.5 rsh
From: Noam Bernstein (noam.bernstein_at_[hidden])
Date: 2014-04-07 16:41:23


On Apr 7, 2014, at 4:36 PM, Blosch, Edwin L <edwin.l.blosch_at_[hidden]> wrote:

> I guess this is not OpenMPI related anymore. I can repeat the essential problem interactively:
>
> % echo $SHELL
> /bin/csh
>
> % echo $SHLVL
> 1
>
> % cat hello
> echo Hello
>
> % /bin/bash hello
> Hello
>
> % /bin/csh hello
> Hello
>
> % . hello
> /bin/.: Permission denied

. is a bash internal which evaluates the contents of the file in the current shell. Since you’re running csh, it’s just looking for an executable named ., which does not exist (the csh analog of bash’s . is source). /bin/. _is_ in your path, but it’s a directory (namely /bin itself), which cannot be executed, hence the error. Perhaps you meant to do
   ./hello
which means (both in bash and csh) run the script hello in the current working directory (.), rather than looking for it in the list of directories in $PATH

                                                                                        Noam