[IPython-dev] Anyone done anything like this before?

Aron Ahmadia aron at ahmadia.net
Tue Oct 2 15:47:00 EDT 2012


Absolutely, you want the subprocess module, and in particular, the
subprocess.communicate() method.

http://docs.python.org/library/subprocess.html

This is core Python functionality, but it wil work from IPython as well.

A

On Tue, Oct 2, 2012 at 10:43 PM, David Quigley <dpquigl at davequigley.com>wrote:

> I want to use ipython as a shell which will receive commands and then
> task a process to do things. The trick here is that I want to start the
> process from within ipython and monitor its stdin/stdout for commands.
> It is a message passing interface so events will come in async and I
> need the shell to be able to handle them. Is there something similar to
> this out there somewhere that I can look at for inspiration? Is this
> even possible?
>
> Dave
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20121002/db19e889/attachment.html>


More information about the IPython-dev mailing list