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
|