LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2007-09-02 22:49:25


On Sep 2, 2007, at 11:18 AM, XMATX_at_[hidden] wrote:

> I try to invoke a simple shell command from my parallel C++ code by
> this:
>
> if(myid == 0)
> {
> std::system("ls -l");
> std::cout << "jjjjjjjjjjjjjJJ" << std::endl;
> }
>
> If i start my programm on one node it works.
> I expect that only the node with the id 0 will invoke the command.
> But nothing happens if i start
> my programm with more than one node.
>
> Can anybode help me with this trivial problem?

Can you run a simple hello,world example on multiple nodes? If not,
it might be indicative or a communication problem (like a TCP
firewall or the like). Can you confirm that LAM is starting the
processes on both nodes?

Brian

-- 
   Brian Barrett
   LAM/MPI Developer
   Make today a LAM/MPI day!