Hello<div>In this case is an external binary written in C. So I will shall use the subprocess.Popen() right?. Besides that general page you gave me, do you know any other page that explains, in a easier way, thje use and parameterizayion of subprocess.Popen()?</div>
<div>Thanks</div><div>Kat<br><br><div class="gmail_quote">2011/7/4 Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
katrin eggert wrote:<br>
<br>
> Just one question: I reading<br>
> <a href="http://grass.osgeo.org/programming6/pythonlib.html" target="_blank">http://grass.osgeo.org/programming6/pythonlib.html</a> the "*GRASS-oriented<br>
> interface to subprocess module" and I'm wondering wich one of this functions<br>
</div>> shall i use to run an external bin in Windows? run_command?*<br>
<br>
Does the external program use the GRASS parser? If it doesn't, you<br>
shouldn't use any of those functions; just use subprocess.Popen().<br>
<br>
If it uses the parser, then the correct command to use depends upon<br>
how you wish to interact with the child process. Read each of their<br>
descriptions to determine which is appropriate.<br>
<br>
All of them (except for exec_command) are simple wrappers around<br>
start_command, which itself just uses make_command to construct a<br>
suitable argument list to pass to Popen().<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</div></div></blockquote></div><br></div>