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 'mkdir'. I'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'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's what the 'p' in 'vp' stand for: path.<br>
<br>
OTOH I don't remember if the exec's tack on the exe name to the args so you might need to do:<br>
<br>
execvp("mkdir",["mkdir","test"]);<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("dmd", ["dmd", "test.d"];<br><br>It doesn't do anything with just<br><br>execvp("dmd", ["test.d"]);<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("dot", ["dot", /* 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>