<br><br><div class="gmail_quote">On Sun, Jan 27, 2013 at 4:56 PM, pablo platt <span dir="ltr"><<a href="mailto:pablo.platt@gmail.com" target="_blank">pablo.platt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">How can I get the output of a python shell?<br><br>This is what I'm trying to do:<br>> Port = open_port({spawn, "python"}, [binary, exit_status]).<br>#Port<0.586><br>> port_command(Port, "print 1\n").<br>
true<br>> flush().<br>ok<br><br>When calling flush(), I expect to get {Port,{data, <<"1\n">>}}<br>but I'm not getting any message.<br></div></blockquote><div><br></div><div>You might want to try ErlPort:</div>
<div><br></div><div><a href="http://erlport.org">http://erlport.org</a></div><div><br></div><div>Otherwise, you're just going to have to re-code what ErlPort already gives you.</div><div><br></div><div>--steve</div></div>