On 6/29/07, <b class="gmail_sendername">Fredrik Svahn</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It would seem to me that having stdin sent to a process of your choice is definitely more "erlangy" than doing file:reads (if there was some back pressure). But using open_port still seems a little bit dirty to me... :-) It might be a bit difficult to explain to a newbie and also has the added disadvantage of using extra command line options (-user as in Ulfs example at the shootout).
</blockquote><div><br>I should mention that I had the same problem with the "stdin as file" approach. I had to patch escript.c and change "-noshell" to "-noinput". Does anyone have any idea what the problem might be?