[erlang-questions] receiving output from a python shell

pablo platt <>
Sun Jan 27 22:56:09 CET 2013

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_command(Port, "print 1\n").
> flush().

When calling flush(), I expect to get {Port,{data, <<"1\n">>}}
but I'm not getting any message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130127/03702f57/attachment.html>

More information about the erlang-questions mailing list