[erlang-questions] Best way to interface Erlang with Java code

zabrane Mikael zabrane3@REDACTED
Thu Dec 10 21:15:10 CET 2009


Thanks for the advice. I'll do.

2009/12/10 Jayson Vantuyl <jvantuyl@REDACTED>

> Can you rewrite your Java program to not require end-of-file, but rather to
> look for a sentinel value that you could manually send?  The problem is that
> port programs don't currently have a mechanism to close their STDIN.
>
> On Dec 10, 2009, at 12:06 PM, zabrane Mikael wrote:
>
> > HI guys !
> >
> > Your prototype worked very well with shell script command (using "read"),
> > but not when calling my "java" program inside it.
> >
> > This is why I need more help please.
> >
> > I found this thread that seems close to my problem, but no solution is
> > proposed:
> >
> http://groups.google.com/group/erlang-programming/browse_thread/thread/b3a048ccfec8d5bc
> >
> > Regards
> > Zabrane
> >
> >
> > 2009/12/10 Jayson Vantuyl <jvantuyl@REDACTED>
> >
> >> I already sent him a working prototype that should have what he needed.
>  I
> >> also blogged about it here:
> >>
> >>
> >>
> http://needlesslymessianic.com/2009/12/10/using-ports-to-communicate-with-external-programs
> >>
> >> On Dec 10, 2009, at 8:19 AM, Garry Hodgson wrote:
> >>
> >> zabrane Mikael wrote:
> >>
> >> I've a binary string <<"Hello World">>, and simply want to send it to
> this
> >>
> >> "java" program (via port_command, but it doesn't work). The latter will
> >> just
> >>
> >> printout "Hello World" on the shell.
> >>
> >> Help, please !!
> >>
> >>
> >> there's not much anyone can do to help with so little information.  we
> need
> >> to see stripped down code, description of what happens, etc.
> >>
> >>
> >> --
> >> Garry Hodgson
> >> Lead Member of Technical Staff
> >> AT&T Chief Security Office (CSO)
> >>
> >> "This e-mail and any files transmitted with it are AT&T property, are
> >> confidential, and are intended solely for the use of the individual or
> >> entity to whom this e-mail is addressed. If you are not one of the named
> >> recipient(s) or otherwise have reason to believe that you have received
> this
> >> message in error, please notify the sender and delete this message
> >> immediately from your computer. Any other use, retention, dissemination,
> >> forwarding, printing, or copying of this e-mail is strictly prohibited."
> >>
> >> ________________________________________________________________
> >> erlang-questions mailing list. See http://www.erlang.org/faq.html
> >> erlang-questions (at) erlang.org
> >>
> >>
> >>
>
>
>
> --
> Jayson Vantuyl
> kagato@REDACTED
>
>
>
>
>
>


More information about the erlang-questions mailing list