[erlang-questions] receiving output from a python shell
Steve Vinoski
vinoski@REDACTED
Sun Jan 27 23:53:14 CET 2013
On Sun, Jan 27, 2013 at 4:56 PM, pablo platt <pablo.platt@REDACTED> wrote:
> How can I get the output of a python shell?
>
> This is what I'm trying to do:
> > Port = open_port({spawn, "python"}, [binary, exit_status]).
> #Port<0.586>
> > port_command(Port, "print 1\n").
> true
> > flush().
> ok
>
> When calling flush(), I expect to get {Port,{data, <<"1\n">>}}
> but I'm not getting any message.
>
You might want to try ErlPort:
http://erlport.org
Otherwise, you're just going to have to re-code what ErlPort already gives
you.
--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130127/d51702e4/attachment.htm>
More information about the erlang-questions
mailing list