[erlang-questions] escript question
Sun Sep 18 19:44:24 CEST 2011
1. write it to a file and use file:consult/1 to grab the result.
2. write it back to stdout and use erl_parse/erl_eval
3. use emu_args to get the escript hooked into the distribution protocol and
use rcp:call to send the result back
Not actually sure about (3) as I've never done that, but the other two work
fine and are simple to implement.
On 18 September 2011 17:49, Chris Hicks <> wrote:
> Quick question, what would be considered the easiest way to "return" data
> to a running Erlang application from an escript? For example I might want to
> run an escript with a data structure I want it to modify and, once it is all
> done, get the modified structure back.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions