LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: XMATX_at_[hidden]
Date: 2007-09-02 13:18:45


Hello,

i'm new to this list and a bit confused whether this is the right place to post my question.

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?

Thanks a lot!
______________________________________________________________________________
Jetzt neu! Im riesigen WEB.DE Club SmartDrive Dateien freigeben und mit
Freunden teilen! http://www.freemail.web.de/club/smartdrive_ttc.htm/?mc=021134