[IPython-dev] Anyone done anything like this before?
jason-sage at creativetrax.com
Tue Oct 2 18:34:10 EDT 2012
On 10/2/12 3:42 PM, Thomas Kluyver wrote:
> On 2 October 2012 20:47, Aron Ahmadia <aron at ahmadia.net> wrote:
>> Absolutely, you want the subprocess module, and in particular, the
>> subprocess.communicate() method.
> I'm not sure that that is the best thing here. The docs for
> communicate() say "...Wait for process to terminate...", whereas it
> sounds like David wants to repeatedly communicate with a process.
That note in the communicate docs:
indicates you should use Popen with a stdin/stdout pipe to be able to do
what you want.
More information about the IPython-dev