<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Oct 22, 2005, at 1:16 PM, <A href="mailto:python-list-request@python.org">python-list-request@python.org</A> wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Michael Williams wrote:</FONT></P> <BR><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Hi All,</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Can anyone explain how to both spawn processes from PYTHON and<SPAN class="Apple-converted-space">  </SPAN>acquire their process IDs or a handle to them for use later?<SPAN class="Apple-converted-space">  </SPAN>I'd<SPAN class="Apple-converted-space">  </SPAN>also like to acquire the stdout of each spawned process.</FONT></P> <BR></BLOCKQUOTE><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Google dead today? Well, check out the modules subprocess, popen2 and os.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Regards,</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Diez</FONT></P> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>No, Google certainly isn't dead.  I simply figured I'd ask those in the know instead of mindlessly meandering the web.  Anyway, I've checked out the OS module and although I can find examples of say .fork, and .popen, they aren't extremely informative or straightforward.  Any other ideas/examples?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regards</DIV></BODY></HTML>