os.pipe() + os.fork()
Aahz
aahz at pythoncraft.com
Thu Feb 25 15:23:30 EST 2010
In article <256926de-e175-4fa2-aa24-dbd5f96756ef at u20g2000yqu.googlegroups.com>,
sebastian.noack at googlemail.com <sebastian.noack at googlemail.com> wrote:
>On Feb 20, 8:13=A0pm, Gary Herron <gher... at islandtraining.com> wrote:
>>
>> Here's a thought: =A0Consider the subprocess module. =A0 It can do thefor=
>k
>> and any necessary pipes and can do so in an OS independent way. =A0 It
>> might make you life much easier.
>
>As far as i know the subprocess module provides only functionality for
>running any program as subprocess. But I just want to fork the current
>process without putting some code in an external python script.
Then try multiprocessing
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer
More information about the Python-list
mailing list