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

Garry Hodgson <>
Mon Dec 7 14:20:51 CET 2009


Jayson Vantuyl wrote:
> This is pretty handy because:
>   
there's another thing that's really handy...
> Then you just receive a bunch of {eol,Line} messages, with a {Port,{exit_status,Status}} message at the end.

that's it.  getting exit status of the program you ran is really important.
i use a function built atop the port mechanism that returns a { Status, 
Output }
tuple, and it's often the case that i don't care about Output unless 
Status is wrong.

-- 
Garry Hodgson
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."




More information about the erlang-questions mailing list