Graham<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Try giving an absolute path to &#39;mkdir&#39;. I&#39;m fairly sure that the exec*<br>
family does not use the PATH environment.<br>
</blockquote>
<br></div></div></blockquote><div><br>I tried the different versions and used execvp precisely because it&#39;s supposed to provide the path. But I admit I never tried giving it an entire path.<br><br> <br>BCS:<br></div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div class="h5"></div></div>
That&#39;s what the &#39;p&#39; in &#39;vp&#39; stand for: path.<br>
<br>
OTOH I don&#39;t remember if the exec&#39;s tack on the exe name to the args so you might need to do:<br>
<br>
execvp(&quot;mkdir&quot;,[&quot;mkdir&quot;,&quot;test&quot;]);<font color="#888888"><br></font></blockquote><div><br>Because arg #0 is the name of the exec itself?<br><br>***<br><br><br>Ok, I tried your suggestions and obtained some results. Right now, I can even make dmd compile some simple file, like this:<br>
<br>execvp(&quot;dmd&quot;, [&quot;dmd&quot;, &quot;test.d&quot;];<br><br>It doesn&#39;t do anything with just<br><br>execvp(&quot;dmd&quot;, [&quot;test.d&quot;]);<br><br>Now, my goal is to activate the dot executable from graphviz<br>
( <a href="http://www.graphviz.org">http://www.graphviz.org</a> )<br><br>and... it works if I use<br><br>execvp(&quot;dot&quot;, [&quot;dot&quot;,  /* arg lis */]);<br> thank to you both!<br><br>strangely, it takes 22s to produce the pdf, as opposed to about 3s at the command line...<br>
I think initially, I stopped it before it could finish its work.<br><br><br>Philippe<br></div></div>