<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Verdana;}
p.ecmsonormal, li.ecmsonormal, div.ecmsonormal
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Hallo!!!</span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'> </span></font><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>I´m running mpiexec on a Windows system and getting the return
value of the command line.</span></font><font size=2 color="#444444"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>For instance</span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>mpiexec
–noprompt foo.exe</span></font></b><font size=2 color="#444444"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>where foo.exe is just a
“non existing” executable. </span></font><font size=2
color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:Verdana;
color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>On console I´m getting
the message</span></font><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>launch
failed: CreateProcess(pii) on 'myhost' failed, error 2 - The system cannot find
the file specified.</span></font></b><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p> </o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>and this is, of course,
fine. </span></font><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>But at the same time,
getting the exiting value of the command with </span></font><font size=2
color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:Verdana;
color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>echo
%ERRORLEVEL%</span></font></b><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>returns to me the 0
value, which is considered as correct returning value!!!</span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>I would have expected
some different return values or way to intercept this situation. </span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>Checking into the code </span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><b><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black;font-weight:bold'>smpd_state_machine.c,
Line 1712</span></font></b><font size=2 color="#444444" face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=2 color=black face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:black'>shows that the returning
value of </span></font><b><font color=black><span style='color:black;
font-weight:bold'>SMPD_ABORT</span></font></b><font size=2 color="#444444"
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:#444444'><o:p></o:p></span></font></p>
<p class=ecmsonormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'>is, in a sense, reset by the calls <b><span
style='font-weight:bold'>smpd_post_read_command()</span></b> and <b><span
style='font-weight:bold'>smpd_post_abort_command()</span></b>,</span></font><font
size=2 color="#444444" face=Verdana><span style='font-size:10.0pt;font-family:
Verdana;color:#444444'><o:p></o:p></span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>else if (result == SMPD_ABORT)</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> {</span></font><font size=2
color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> result = smpd_post_read_command(context);</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> if (result != SMPD_SUCCESS)</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> {</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> smpd_err_printf("unable to post a read for the next command on %s context.\n", smpd_get_context_str(context));</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> smpd_exit_fn(FCNAME);</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> return SMPD_FAIL;</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> }</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> result = smpd_post_abort_command("");</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> if (result != SMPD_SUCCESS)</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> {</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> smpd_err_printf("unable to post an abort command.\n");</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> smpd_exit_fn(FCNAME);</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> return SMPD_FAIL;</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> }</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> }</span></font><font size=2
color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> else</span></font><font size=2
color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> {</span></font><font size=2
color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> …</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> }</span></font><font size=2
color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> smpd_exit_fn(FCNAME);</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> return SMPD_SUCCESS;</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'>}</span></font><font size=2 color="#444444"><span
style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:black'> </span></font><font size=2 color="#444444"><span
style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>Is there anything I´m maybe missing??? Should this be considered as a bug?</span></font><font
size=2 color="#444444"><span style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>Thanks a lot and </span></font><font size=2 color="#444444"><span
style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>Best Regards, </span></font><font size=2 color="#444444"><span
style='font-size:10.0pt;color:#444444'><o:p></o:p></span></font></pre><pre><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'><o:p> </o:p></span></font></pre><pre><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'>Eugenio<o:p></o:p></span></font></pre><pre><font size=2
color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'><o:p> </o:p></span></font></pre></div>
</body>
</html>