<div dir="ltr">Having thought about this for a couple of minutes now, and having looked around for some ideas from other languages, if I had the problem of interacting with some random piece of software from within Erlang, I would write a small Jinterface wrapper around ExpectJ or expect4j and take it from there.<div>
<br></div><div>(I suspect that coding a native Erlang based expect clone is non-trivial, but maybe ripping off some existing code could get you started down that road.)<div><br></div><div>Robby</div><div><br></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 30, 2013 at 11:01 AM, Heinz Nikolaus Gies <span dir="ltr"><<a href="mailto:heinz@licenser.net" target="_blank">heinz@licenser.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I am facing the same issue as Anthony,<div>it is rather annoying there are more issues that are involved with Erlangs handling of the STD* pipes, i.e. missing a way to terminate a program that does not terminate on STDin close. I would not argue 'because it's not in Erlang it is not important'. I greatly enjoy that Erlang is not jumping any change to change but that argument means nothing would ever get get done :P</div>
<div><br></div><div><br><div><div><div class="h5"><div>On Jul 30, 2013, at 10:43, Jesper Louis Andersen <<a href="mailto:jesper.louis.andersen@erlang-solutions.com" target="_blank">jesper.louis.andersen@erlang-solutions.com</a>> wrote:</div>
<br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 30, 2013 at 8:30 AM, Anthony Grimes <span dir="ltr"><<a href="mailto:i@raynes.me" target="_blank">i@raynes.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Sure, that's an option. I'm still unclear why I can do this in every 
other language I use but not Erlang. I find it hard to believe that all 
other languages with this capability are doing something utterly stupid,
 but Erlang, being the best language in the known universe, has gotten 
it utterly correct. But once again, I'll concede.</blockquote></div><br></div><div class="gmail_extra">One thing to muse about is how useful an unimplemented feature is, if said language is more than 20 years old :)</div>


<div class="gmail_extra"><br></div><div class="gmail_extra">Yes, you could add it, and it may make sense to add, but I find it way easier to hack pygments to be able to read data in {packet, 4} format.</div></div></div></div>
<div class="im">
_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></blockquote></div><br></div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>